What's in the Handbook?Schedule of Events
All About Chingu
Pre-Voyage - Solo Project
Voyage - Team Project
Pair Programming Guide
Git Pull Requests
- Include the purpose of the Pull Request. For example: "This makes login/register windows close when clicking outside the box".
- If the change is visual, make sure to include a screenshot or GIF.
- Consider providing an overview of why the work is taking place (with any relevant links); don’t assume familiarity with the history.
- Be explicit about what feedback you want, if any: a quick pair of eyes on the code, discussion on the technical approach, critique on design, a review of copy, etc..
- Be explicit about when you want feedback. If the Pull Request is a work in progress, say so. A prefix of “[WIP]” in the title is a simple, common pattern to indicate this.
- @mention individuals that you specifically want to involve in the discussion, and mention why.
- Understand the issue that is being fixed, or the feature being added. Check the description on the pull, and check out the related issue. If you don’t understand something, ask the submitter for clarification.
- Reproduce the bug (or the lack of feature) in the destination branch,
development. The referenced issue will help you here. If you’re unable to reproduce the issue, contact the issue submitter for clarification.
- Check out the pull and test it. Does the feature work? Is the issue fixed? Does it have any nasty side effects? Try to create suspect inputs. If it operates on the value of a field, try things like strings (including an empty string), null, numbers, or dates. Try to think of edge cases that might break the code.
- Merge the target branch. It is possible that tests or the linter have been updated in the target branch since the pull was submitted. Merging the pull could cause the core to start failing.
- Read the code. Understanding the changes will help you find additional things to test. Contact the submitter if you don’t understand something.
- Go line-by-line. Are there style guide violations? Strangely named variables? Magic numbers? Do the abstractions make sense to you? Are things arranged in a testable way?
- Speaking of tests: are they there? If a new function was added, does it have tests? Do the tests, well, TEST anything? Do they just run the function or do they properly check the output?
- Suggest improvements. If there are changes needed, be explicit and comment on the lines in the code that you’d like changed. You might consider suggesting fixes. If you can’t identify the problem, animated screenshots can help reviewers understand what’s going on.
- Hand it back. If you found issues, re-assign the submitter to the pull to address them. Repeat until mergeable.
- Hand it off. If you’re the first reviewer and everything looks good but the changes are more than a few lines, hand the pull to someone else to take a second look. Again, try to find the right person to assign it to.
- Merge the code. When everything looks good, merge into the target branch. Check the labels on the pull to see if backporting is required, and perform the backport if so.
Copyright2021 Chingu Cohorts