- Review your own code thoroughly before requesting a review from others.
- Ask yourself whether the current state of the code is maintainable, follows best practices, and meets the project's coding standards.
- Before creating a PR to the
developmentbranch, ensure that the Product Owner has accepted the work. - This ensures that each task has been formally validated before proceeding.
- After approval from all reviewers, the last reviewer to approve the PR will be responsible for merging it into the
development(Dev) branch. - Immediately after merging into Dev, check if the feature works in
developmentbranch before creating a new PR tostaging. If it works create a new PR to staging ASAP to ensure that the PBI (Product Backlog Item) is merged one at a time, minimizing conflicts.
- Always include the Acceptance Criteria and Definition of Done (DoD) in the PR as a checklist.
- Example Checklist:
- Does the code meet the defined Acceptance Criteria?
- Is the Definition of Done (DoD) fulfilled?
- Has the Product Owner approved?
- Example Checklist:
- Attach pictures, videos, or GIFs illustrating that the acceptance criteria are met.
- For frontend work, include screenshots of the changes.
- Be constructive and critical of the code, focusing on improving quality rather than personal criticism.
- When reviewing, ask yourself: “Would I be comfortable working on this file in its current state?”
- Pull the latest
developmentbranch into your working branch before you request a code review to ensure compatibility and prevent conflicts.
- Switch review teams weekly to ensure a diverse range of feedback across all groups.
- Example: Group 1 reviews for Group 2, Group 3 reviews for Group 4, and so on.
- This enhances cross-group collaboration and knowledge sharing.
- Each PR should be reviewed by a pair of teams, with a minimum of two reviewers. At least one reviewer must be from a different team.
- This rule ensures fresh perspectives and prevents group-specific biases.
- Before creating a PR, run the branch through Codescene (or any similar tool) to detect any code quality or technical debt improvements.
- After running Codescene, ensure you pull the latest
developmentbranch into your working branch once again before creating the PR.
- Each PR must have a clear deadline for review and merging. Ensure the code is reviewed and merged promptly to avoid bottlenecks and allow continuous progress.
- Include visual proof (e.g., screenshots, GIFs) showing how the Acceptance Criteria are met for every PR.
- Ensure that the code is tested and does not break existing functionality.
- Add the criteria of ESlint passing the test on the front-end.
- Open a PR for the
stagingbranch and use the provided template from the resources folder. - Ensure that all tests pass before finalizing the PR.
- Verify that the PR has sufficient reviews, meeting the minimum requirements (at least two reviewers, with one from another team).
- If the staging deployment fails, it must be fixed immediately before proceeding with any other PRs to staging. This ensures that the staging environment remains functional.
- If you push a hotfix directly to staging, ensure that the
developmentbranch is also updated to reflect those changes, maintaining consistency across environments.