Skip to content

Instantly share code, notes, and snippets.

@hugoarnal
Forked from joshbuchea/semantic-commit-messages.md
Last active December 29, 2025 01:24
Show Gist options
  • Select an option

  • Save hugoarnal/d0a8143d578dbaab02419816c127bfcc to your computer and use it in GitHub Desktop.

Select an option

Save hugoarnal/d0a8143d578dbaab02419816c127bfcc to your computer and use it in GitHub Desktop.
Own take on "Semantic Commit Messages"

Own take on "Semantic Commit Messages"

Clearer types with clearer descriptions

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

<scope> is optional

Types

user here refers to anyone using the app.

- feat:

New feature for the user (nothing build related)

Adding a new toggle, new option, new page, etc...

- fix:

Bug fix for the user (nothing build related)

Segfault, 404, etc...

- docs:

Changes to the documentation

Markdown, docstrings, comments, etc...

If needed, I sometimes add [skip ci] at the end of the commit message to skip the CI as most documentation changes don't touch code.

- imp/style (improvement/styling):

Must be style-related

Formatting, missing semi colons, not respected coding style, etc...

- ref (refactor):

Improvements to code / rewrites

^ not to be confused with imp

Faster implementation, more readable (in the coding way, not styling), rewriting the system...

- test:

Test related

Unit tests added/removed, functional tests, etc...

- ci:

CI related

Jobs added/removed, scopes rewritten, etc...

- build:

Build related

Adding files to build, new variable to be set, new rule, etc...

- chore

"Other" tasks

Updating dependencies, removing an unused file, bumping version, etc...


Initial references:

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