Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 858 Bytes

pull-request-commit-format.md

File metadata and controls

33 lines (25 loc) · 858 Bytes

Pull Request Commit Format

We request that changes in Pull Requests be squashed into one signed, single commit with this format:

<type>: commit title goes here (all lowercase)

* <type>: Main change 1
...
* <type>: Main change N

Signed-off-by: Your Name <[email protected]>
Co-authored-by: John Smith <[email protected]>
Co-authored-by: Jane Smith <[email protected]>

With these types:

  • new - for new feature
  • fix - for bugfix
  • doc - for documentation
  • test - for test
  • ref - for refactoring
  • chore - for housekeeping
  • wip - work in progress

To squash commits or to add a signature to an existing commit you can use git reset and then create a new commit (replace N with the number of commits in your PR):

git reset --soft HEAD~N
git commit -a -s -m "new: add hug-mode to skynet"
git push origin --force