Skip to content

Instantly share code, notes, and snippets.

@fmnoise
Forked from joshbuchea/semantic-commit-messages.md
Last active January 25, 2023 21:22
Show Gist options
  • Save fmnoise/b9a5543125075d1197fde3f75535b54b to your computer and use it in GitHub Desktop.
Save fmnoise/b9a5543125075d1197fde3f75535b54b to your computer and use it in GitHub Desktop.
Semantic Commit Messages

Semantic Commit Messages

Format: <type>(<scope>): <subject>

<scope> is optional

Example

feat: add hat wobble
^--^  ^------------^
|     |
|     +-> Summary in present tense.
|
+-------> Type: tech, docs, feat, fix, style, test.

More Examples:

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the business logic, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, reword, etc)
  • tech: (technical code changes, eg. renaming a variable, update dependency version, no business logic change)
  • test: (adding missing tests, refactoring tests; no production code change)

Reference: https://www.conventionalcommits.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment