Skip to content

Instantly share code, notes, and snippets.

@felipelima94
Last active October 26, 2023 19:08
Show Gist options
  • Save felipelima94/fac23d8420cb16c565675f33535d977f to your computer and use it in GitHub Desktop.
Save felipelima94/fac23d8420cb16c565675f33535d977f to your computer and use it in GitHub Desktop.
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer. Format: <type>(<scope>): <subject> <scope> is optional

Example

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

More Examples:

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests
  • chore: Updating grunt tasks etc; no production code change

References:

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