Appendix E Cheat sheet for managing pull requests
You are one of the people in charge of a GitHub repository. Below are the typical steps to evaluate pull requests.
- Click on the
Pull requests
tab, and then choose a pull request. -
If there are merge conflicts, write a brief message and click
Comment
.Now there is nothing else to do until you get an email either replying to your comment, or telling you that the pull request has been updated. - Click on the
Files changed
sub-tab, and carefully look at all the changes. If there are any errors or violations of the official style for the project, click back toConversation
and leave a helpfulComment
. -
If the changes look reasonable, then you have to actually check that the new material functions as advertised. Go to your laptop and do:
git checkout master
git pull upstream master
Then click back toConversation
and click oncommand line instructions
. Copy and paste those into the command line. They will look something like this:git checkout -b fredstro-solutions-chap-6 master
git pull https://github.com/fredstro/calculus.git solutions-chap-6
- Check their contribution: run
latex
, or compile the code, or whatever is appropriate. -
If you aren’t happy with what you see, leave a helpful comment.But if everything looks good, click
Merge pull request
, leave a comment if appropriate, and then clickConfirm merge
. - You are done, except don’t forget to
git checkout master
and then pull in the new material.