...
Code changes that follow the design and style of the existing code
Code changes that do not decrease test coverage or maintainability
Commit messages and Pull Requests that are in a consistent format
Pull Requests that are easy and fast to review: avoid the review bottleneck
After a developer is assigned a Jira task, they begin work.
...
Click the “Draft pull request” button to create the Pull Request
Wait for the automatically-run “Tests” GitHub Action to automatically run complete successfully
Expand | ||
---|---|---|
| ||
The “Tests” GitHub Action runs:
Note that the test coverage is not uploaded to Code Climate, as Actions run from Pull Requests do not have access to the GitHub Secrets needed to authenticate with Code Climate. |
Run the deploy Action
test
Mark as ready for review
Add reviewersUsing your Pull Request number, run the “PR Deploy” Action
Test your changes in the deployed PR environment
Do a self-review of your Pull Request
Expand | ||
---|---|---|
| ||
Pull Requests should be created so that can be easily and quickly reviewed. By reading through every line of your code changes (because the reviewer should also be reading every line) you check that the Pull Request will make sense to your reviewers. It might help to add a GitHub comment to your code changes to explain them better. It might help to split your Pull Request into smaller pieces if it is too large: small Pull Requests that take ten minutes to review will get a more thorough review than Pull Requests that take hours or days. |
Click the “Ready to review” button to take your Pull Request out of “draft”
If necessary, add reviewers
Expand | ||
---|---|---|
| ||
Ideally every developer would review and understand every change in every Pull Request, but that’s not practical. There are two ways of looking at Pull Requests:
We can use the Ship / Show / Ask approach to changes:
|
Talk to reviewers
Keep up to date
Deploy Action
merge and message
Push Action
Undeploy Action
Code Climate / etc?
Jira: moving tickets, rewrite description
What is the intention of a PR review? Ship / Show / Ask. nitpicks. style guide. choose your battles
...