opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[doc] Expand github_notes document to include info on how to do pull requests

Open imphil opened this issue 7 years ago • 7 comments

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 --amend is often easier than git rebase
  • Commit message rules: 50 character summary, empty line, longer description (why this change?)

imphil avatar May 10 '19 08:05 imphil

Use https://github.com/lowRISC/stwg-base/pull/422#issuecomment-491229441 as base for this.

imphil avatar May 10 '19 09:05 imphil

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.

asb avatar May 10 '19 10:05 asb

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.

mdhayter avatar May 13 '19 08:05 mdhayter

Can this be closed when https://github.com/lowRISC/opentitan/pull/688 goes in?

aytong avatar Oct 31 '19 00:10 aytong

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?

tjaychen avatar Oct 31 '19 00:10 tjaychen

Thanks Andy and Tim, will do when it merges!

cindychip avatar Nov 04 '19 01:11 cindychip

https://github.com/lowRISC/opentitan/pull/688 merged

cindychip avatar Nov 04 '19 19:11 cindychip