-
Notifications
You must be signed in to change notification settings - Fork 14
About pull request review
Everybody benefits from code and content review: The reviewer, the reviewee and whoever comes to look at the reviewed code and content later!
To quote Parker 2017:
Code review will not guarantee an accurate analysis, but it’s one of the most reliable ways of establishing one that is more accurate than before.
- A problem is identified
- An issue is filed that describes that problem
- A writer files a pull request that contains changes that addresses the problem.
- A reviewer reviews the changes on that pull request.
- The reviewer reviews and recommends edits to those changes or accepts them as is.
- The writer incorporates those changes as best they can.
- (Steps 4-6) with comments between the are repeated until the reviewer and writer accept the changes.
- Changes are added to the code base by merging the pull request.
- A new problem is identified (and the whole cycle starts again).
That's the workflow, but how do you get the most out of code review, both as the reviewer and writer? Here's some tips about getting the most out of code review:
- Put context around the changes you are proposing, linking any relevant issues, prior pull requests, or relevant code/media.
- Review your own pull request before requesting the review of someone else; check the
Files Changed
tab. - If a pull request is still in progress change it to a draft so no one reviews it before you are ready.
- Try to make sure your pull requests aren't too long! Code reviewing fatigue is very real.
- Highlight for the reviewer what kind of feedback you are looking for.
- Try to explain or ask for help on any peculiar parts of your PR or if there's any parts you are stuck on.
- Accept reviews with a helpful frame of mind -- it's perfectly okay to be wrong!
- Check that the pull request meets the goals that the writer is intending.
- If you don't understand, ask more questions!
- Take careful review of areas that are more complex or seem odd.
- Give reviews loaded with empathy and positivity !
- Utilize suggestions where possible.
- If you are completely lost, don't be afraid to ask the writer to reconfigure or expound on what they mean.
If you encounter any problems or have ideas for improvements to this template repository or this getting started guide, please file an issue here! Your feedback is very much appreciated.
Note all materials in this template are licensed CC-BY and can be repurposed freely with attribution.
- Getting started
- Start a new course!
- Start editing course files
- Content creation tips
- Setting up images and videos
- About citations
- About Docker
- Spell check
- URL check
- Generate docx output
- Borrowing chapters between courses
- Most common errors
- Choosing between platforms
- Publishing with Bookdown
- Publishing on Coursera
- Publishing on Leanpub
- Making quizzes private (Leanpub and Coursera)
- Set up user feedback method
- Change title and style
- Credits section
- Adding Google Analytics Traffic Tracking
- Release a course for public viewing