Forked from qoomon/conventional-commits-cheatsheet.md
Created
February 19, 2024 06:37
-
-
Save nagarjunareddy1996/f4463eeb2d4b9d18fcc33f43f1ab8b2a to your computer and use it in GitHub Desktop.
Revisions
-
qoomon revised this gist
Feb 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,7 +62,7 @@ The `description` contains a concise description of the change. * Use the imperative, present tense: "change" not "changed" nor "changes" * Think of `This commit will...` or `This commit should...` * Don't capitalize the first letter * No dot (`.`) at the end ### Body The `body` should include the motivation for the change and contrast this with previous behavior. -
qoomon revised this gist
Feb 16, 2024 . No changes.There are no files selected for viewing
-
qoomon revised this gist
Feb 16, 2024 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,11 +7,6 @@ See how a [minor change](#examples) to your commit message style can make a diff ## Commit Message Formats ### Default <pre> <b><a href="#types"><type></a></b></font>(<b><a href="#scopes"><optional scope></a></b>): <b><a href="#description"><description></a></b> @@ -33,6 +28,10 @@ Revert "<b><reverted commit subject line></b>" </pre> <sup>Follows default git revert message</sup> ### Inital Commit ``` init ``` ### Types * API relevant changes -
qoomon revised this gist
Feb 16, 2024 . No changes.There are no files selected for viewing
-
qoomon revised this gist
Feb 16, 2024 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,9 @@ See how a [minor change](#examples) to your commit message style can make a diff ## Commit Message Formats ### Inital Commit ``` init ``` ### Default <pre> -
qoomon revised this gist
Feb 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ See how a [minor change](#examples) to your commit message style can make a diff <img src="https://img.icons8.com/dusk/1600/commit-git.png" width="200" height="200" /> ## Commit Message Formats ### Inital Commit Just `init` -
qoomon revised this gist
Feb 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -143,7 +143,7 @@ The `footer` should contain any information about **Breaking Changes** and is al ### pre-receive Hook (server side) * create following file in your repository folder `.git/hooks/pre-receive` ```shell #!/usr/bin/env bash # Pre-receive hook that will block commits with messges that do not follow regex rule -
qoomon revised this gist
Feb 12, 2024 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,10 @@ See how a [minor change](#examples) to your commit message style can make a diff <img src="https://img.icons8.com/dusk/1600/commit-git.png" width="200" height="200" /> ## Commit Messaz Formats ### Inital Commit Just `init` ### Default <pre> -
qoomon revised this gist
Feb 5, 2024 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -118,6 +118,7 @@ The `footer` should contain any information about **Breaking Changes** and is al ## Git Hook Scripts to ensure commit message header format ### commit-msg Hook (local) * ensure `node` and `npx` command is installed on your local machine * create following file in your local repository folder`.git-hooks/commit-msg` ```shell #!/usr/bin/env sh @@ -126,7 +127,7 @@ The `footer` should contain any information about **Breaking Changes** and is al # exit with a non zero exit code incase of an invalid commit message # use git-conventional-commits, see https://github.com/qoomon/git-conventional-commits npx git-conventional-commits commit-msg-hook "$commit_message" # or verify $commit_message with your own tooling # ... -
qoomon revised this gist
Feb 5, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ # Conventional Commit Messages See how a [minor change](#examples) to your commit message style can make a difference. **ℹ️ [git-conventional-commits](https://github.com/qoomon/git-conventional-commits)** A CLI util to ensure this conventions and generate changelogs -
qoomon revised this gist
Dec 24, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # Conventional Commit Messages See how a minor change to your commit message style can make a difference. [Examples](#examples) **ℹ️ [git-conventional-commits](https://github.com/qoomon/git-conventional-commits)** A CLI util to ensure this conventions and generate changelogs <img src="https://img.icons8.com/dusk/1600/commit-git.png" width="200" height="200" /> -
qoomon revised this gist
Nov 11, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Revert "<b><reverted commit subject line></b>" ### Types * API relevant changes * `feat` Commits, that adds or remove a new feature * `fix` Commits, that fixes a bug * `refactor` Commits, that rewrite/restructure your code, however does not change any API behaviour * `perf` Commits are special `refactor` commits, that improve performance -
qoomon revised this gist
Oct 13, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -81,7 +81,7 @@ The `footer` should contain any information about **Breaking Changes** and is al feat(shopping cart): add the amazing button ``` * ``` feat!: remove ticket list endpoint refers to JIRA-1337 -
qoomon revised this gist
Oct 13, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Revert "<b><reverted commit subject line></b>" * API relevant changes * `feat` Commits, that adds a new feature * `fix` Commits, that fixes a bug * `refactor` Commits, that rewrite/restructure your code, however does not change any API behaviour * `perf` Commits are special `refactor` commits, that improve performance * `style` Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc) * `test` Commits, that add missing tests or correcting existing tests -
qoomon revised this gist
Oct 9, 2023 . 1 changed file with 30 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -74,27 +74,45 @@ The `footer` should contain any information about **Breaking Changes** and is al ### Examples * ``` feat: add email notifications on new direct messages ``` * ``` feat(shopping cart): add the amazing button ``` * ``` feat: remove ticket list endpoint refers to JIRA-1337 BREAKING CHANGES: ticket enpoints no longer supports list all entites. ``` * ``` fix(api): handle empty message in request body ``` * ``` fix(api): fix wrong calculation of request body checksum ``` * ``` fix: add missing parameter to service call The error occurred because of <reasons>. ``` * ``` perf: decrease memory footprint for determine uniqe visitors by using HyperLogLog ``` * ``` build: update dependencies ``` * ``` build(release): `bump version to 1.0.0 ``` * ``` refactor: implement fibonacci number calculation as recursion ``` * ``` style: remove empty line ``` ## Git Hook Scripts to ensure commit message header format -
qoomon revised this gist
Oct 9, 2023 . 1 changed file with 11 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -74,9 +74,15 @@ The `footer` should contain any information about **Breaking Changes** and is al ### Examples * `feat`: <sub>(this commit will)</sub> add email notifications on new direct messages * `fix(api)`: <sub>(this commit will)</sub> handle empty message in request body * `fix(api)`: <sub>(this commit will)</sub> fix wrong calculation of request body checksum * `perf`: <sub>(this commit will)</sub> decrease memory footprint for determine uniqe visitors by using HyperLogLog * `build`: <sub>(this commit will)</sub> update dependencies * `build(release)`: <sub>(this commit will)</sub> bump version to 1.0.0 * `feat(shopping cart)`: <sub>(this commit will)</sub> add the amazing button * `refactor:` implement fibonacci number calculation as recursion * `style`: remove empty line * ``` feat: remove ticket list endpoint @@ -88,19 +94,8 @@ The `footer` should contain any information about **Breaking Changes** and is al The error occurred because of <reasons>. ``` ## Git Hook Scripts to ensure commit message header format -
qoomon revised this gist
Oct 9, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Breaking changes should be indicated by an `!` before the `:` in the subject lin The `description` contains a concise description of the change. * Is a **mandatory** part of the format * Use the imperative, present tense: "change" not "changed" nor "changes" * Think of `This commit will...` or `This commit should...` * Don't capitalize the first letter * No dot (.) at the end -
qoomon revised this gist
Oct 5, 2023 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ See how a minor change to your commit message style can make a difference. [Exam ### Default <pre> <b><a href="#types"><type></a></b></font>(<b><a href="#scopes"><optional scope></a></b>): <b><a href="#description"><description></a></b> <sub>empty separator line</sub> <b><a href="#body"><optional body></a></b> <sub>empty separator line</sub> @@ -24,7 +24,7 @@ Merge branch '<b><branch name></b>' ### Revert Commit <pre> Revert "<b><reverted commit subject line></b>" </pre> <sup>Follows default git revert message</sup> @@ -52,8 +52,8 @@ The `scope` provides additional contextual information. Breaking changes should be indicated by an `!` before the `:` in the subject line e.g. `feat(api)!: remove status endpoint` * Is an **optional** part of the format ### Description The `description` contains a concise description of the change. * Is a **mandatory** part of the format * Use the imperative, present tense: "change" not "changed" nor "changes" * Think of `This commit will <subject>` @@ -132,8 +132,8 @@ The `footer` should contain any information about **Breaking Changes** and is al commit_msg_type_regex='feat|fix|refactor|style|test|docs|build' commit_msg_scope_regex='.{1,20}' commit_msg_description_regex='.{1,100}' commit_msg_regex="^(${commit_msg_type_regex})(\(${commit_msg_scope_regex}\))?: (${commit_msg_description_regex})\$" merge_msg_regex="^Merge branch '.+'\$" zero_commit="0000000000000000000000000000000000000000" -
qoomon revised this gist
Oct 5, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,13 +18,13 @@ See how a minor change to your commit message style can make a difference. [Exam ### Merge Commit <pre> Merge branch '<b><branch name></b>' </pre> <sup>Follows default git merge message</sup> ### Revert Commit <pre> Revert "<b><first line of reverted commit message></b>" </pre> <sup>Follows default git revert message</sup> -
qoomon revised this gist
Oct 1, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Merge branch '<b><BRANCH_NAME></b>' ### Revert Commit <pre> Revert "<b><SUBJECT></b>" </pre> <sup>Follows default git revert message</sup> -
qoomon revised this gist
Oct 1, 2023 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,12 +16,18 @@ See how a minor change to your commit message style can make a difference. [Exam <b><a href="#footer"><optional footer></a></b> </pre> ### Merge Commit <pre> Merge branch '<b><BRANCH_NAME></b>' </pre> <sup>Follows default git merge message</sup> ### Revert Commit <pre> Revert '<b><SUBJECT></b>' </pre> <sup>Follows default git revert message</sup> ### Types * API relevant changes -
qoomon revised this gist
Aug 28, 2023 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,10 @@ The `scope` provides additional contextual information. * Allowed Scopes depends on the specific project * Don't use issue identifiers as scopes ### Breaking Changes Indicator Breaking changes should be indicated by an `!` before the `:` in the subject line e.g. `feat(api)!: remove status endpoint` * Is an **optional** part of the format ### Subject The `subject` contains a succinct description of the change. * Is a **mandatory** part of the format -
qoomon revised this gist
Oct 26, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,6 +46,7 @@ The `scope` provides additional contextual information. The `subject` contains a succinct description of the change. * Is a **mandatory** part of the format * Use the imperative, present tense: "change" not "changed" nor "changes" * Think of `This commit will <subject>` * Don't capitalize the first letter * No dot (.) at the end -
qoomon revised this gist
Apr 7, 2022 . 1 changed file with 3 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Conventional Commit Messages See how a minor change to your commit message style can make a difference. [Examples](#examples) **Have a look at CLI util [git-conventional-commits](https://github.com/qoomon/git-conventional-commits) to ensure this conventions and generate changelogs** @@ -22,21 +22,13 @@ Merge branch '<b><branch name></b>' </pre> <sup>Follows default git merge message</sup> ### Types * API relevant changes * `feat` Commits, that adds a new feature * `fix` Commits, that fixes a bug * `refactor` Commits, that rewrite/restructure your code, however does not change any behaviour * `perf` Commits are special `refactor` commits, that improve performance * `style` Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc) * `test` Commits, that add missing tests or correcting existing tests * `docs` Commits, that affect documentation only @@ -132,7 +124,6 @@ The `footer` should contain any information about **Breaking Changes** and is al commit_msg_subject_regex='.{1,100}' commit_msg_regex="^(${commit_msg_type_regex})(\(${commit_msg_scope_regex}\))?: (${commit_msg_subject_regex})\$" merge_msg_regex="^Merge branch '.+'\$" zero_commit="0000000000000000000000000000000000000000" @@ -155,7 +146,7 @@ The `footer` should contain any information about **Breaking Changes** and is al for commit in $rev_span; do commit_msg_header=$(git show -s --format=%s $commit) if ! [[ "$commit_msg_header" =~ (${commit_msg_regex})|(${merge_msg_regex}) ]]; then echo "$commit" >&2 echo "ERROR: Invalid commit message format" >&2 echo "$commit_msg_header" >&2 -
qoomon revised this gist
Aug 6, 2021 . 1 changed file with 0 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -97,11 +97,6 @@ The `footer` should contain any information about **Breaking Changes** and is al * ``` style: remove empty line ``` ## Git Hook Scripts to ensure commit message header format -
qoomon revised this gist
Apr 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -86,7 +86,7 @@ The `footer` should contain any information about **Breaking Changes** and is al The error occurred because of <reasons>. ``` * ``` build(release): bump version to 1.0.0 ``` * ``` build: update dependencies -
qoomon revised this gist
Apr 12, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,7 @@ This reverts commit <b><commit hash></b>. * `docs` Commits, that affect documentation only * `build` Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ... * `ops` Commits, that affect operational components like infrastructure, deployment, backup, recovery, ... * `chore` Miscellaneous commits e.g. modifying `.gitignore` ### Scopes The `scope` provides additional contextual information. -
qoomon revised this gist
Apr 12, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ This reverts commit <b><commit hash></b>. * `perf` Commits are special `refactor` commits, that improves performance * `style` Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc) * `test` Commits, that add missing tests or correcting existing tests * `docs` Commits, that affect documentation only * `build` Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ... * `ops` Commits, that affect operational components like infrastructure, deployment, backup, recovery, ... -
qoomon revised this gist
Jan 15, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ This reverts commit <b><commit hash></b>. * `feat` Commits, that adds a new feature * `fix` Commits, that fixes a bug * `refactor` Commits, that rewrite/restructure your code, however does not change any behaviour * `perf` Commits are special `refactor` commits, that improves performance * `style` Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc) * `test` Commits, that add missing tests or correcting existing tests * `doc` Commits, that affect documentation only -
qoomon revised this gist
Dec 30, 2020 . No changes.There are no files selected for viewing
NewerOlder