Last active
May 31, 2023 20:57
-
-
Save trixtur/166bb38c125a12b75b15946ba55ec384 to your computer and use it in GitHub Desktop.
Gitmoji Conventional Commit Config Template
This file contains 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 characters
templates: | |
conventional: | |
Command: git | |
CommandArgs: | |
- commit | |
- -m | |
- '{{.type}}{{with .scope}}({{.}}){{end}}: {{if eq (getString "format") "emoji"}}{{.gitmoji.Emoji}} {{else}}{{.gitmoji.Code}}{{end}}{{.title}}' | |
- '{{with .message}}-m{{end}}' | |
- '{{.message}}' | |
- '{{with .footer}}-m{{end}}' | |
- '[{{.footer}}]' | |
Messages: | |
- '{{.type}}{{with .scope}}({{.}}){{end}}: {{if eq (getString "format") "emoji"}}{{.gitmoji.Emoji}} {{else}}{{.gitmoji.Code}}{{end}}{{.title}}' | |
- '{{with .message}}-m{{end}}' | |
- '{{.message}}' | |
- '{{with .footer}}-m{{end}}' | |
- '[{{.footer}}]' | |
Prompts: | |
- Type: gitmoji | |
Mandatory: true | |
Name: gitmoji | |
- Type: choice | |
Mandatory: true | |
Prompt: 'Choose the type of commit:' | |
Name: type | |
Choices: | |
- Value: feat | |
Description: A new feature. | |
- Value: fix | |
Description: A bug fix. | |
- Value: docs | |
Description: Documentation only changes. | |
- Value: perf | |
Description: A code change that improves performance. | |
- Value: refactor | |
Description: A code change that neither fixes a bug nor adds a feature. | |
- Value: test | |
Description: Adding missing or correcting existing tests. | |
- Value: chore | |
Description: Chore related changes. | |
- Type: text | |
Prompt: Enter the (optional) scope of current changes | |
Name: scope | |
- Type: text | |
Mandatory: true | |
Prompt: Enter the commit title | |
Name: title | |
- Type: text | |
Prompt: Enter the (optional) commit message | |
Name: message | |
- Type: text | |
Prompt: Enter the storyId | |
Mandatory: true | |
Name: footer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment