[doc] Expand github_notes document to include info on how to do pull requests
Several things come up repeatedly and should be added to the docs:
- You can update a pull request by force-pushing to it
- You should use git rebase to clean up the history before things are merged
git commit --amendis often easier than git rebase- Commit message rules: 50 character summary, empty line, longer description (why this change?)
Use https://github.com/lowRISC/stwg-base/pull/422#issuecomment-491229441 as base for this.
Great start, and thanks for filing this issue! I think it might also be worth a discussion about a PR with multiple commits vs a single commit, as this might be confusing for people new to Git (and maybe those who come from other review systems which are more focused on a single patch, e.g. Phabricator).
We can also document that reviewers should be/will be reviewing commit messages etc as well. This is one reason why it's preferable if people squash+fixup their own commits rather than leaving it for someone else to handle when committing.
Also want to add that reviewers of PRs should check if the change needs documentation update and that should preferably be in the same PR.
Can this be closed when https://github.com/lowRISC/opentitan/pull/688 goes in?
yes i think so. we are trying to show new users how to use git.
@cindychip would you mind closing this one whenever the other PR manages to get merged?
Thanks Andy and Tim, will do when it merges!
https://github.com/lowRISC/opentitan/pull/688 merged