Automatically set the issue key (of the current branch name) as prefix for the commit message
Important: This plugin only works with branches named as follows
- Jira format with alphanumeric project keys (ABC-1234)
- Jira format with numeric project keys (1234-5678)
- Other format that is all numbers (123456)
Plugin can be downloaded whithin IntelliJ or on the Jetbrains Plugin Site
- Automatically change the commit prefix if switching branches (also switching on cli/terminal is recognized)
- If intellij is suggesting a (previous) commit message, only the prefix will be updated
- Set your custom delimiter between the issue key and the commit message (Default ": ")
- Wrap the issue key as you like
Following prefix for commit messages will automatically be generated:
Branch name | Commit prefix (with delimiter) | Commit prefix (wrapped) |
---|---|---|
main | no action | no action |
master | no action | no action |
bugfix/ABC-1234-app-not-working | ABC-1234: | [ABC-1234] |
feature/ABC-1234-app-not-working | ABC-1234: | [ABC-1234] |
release/ABC-1234-app-not-working | ABC-1234: | [ABC-1234] |
someOtherType/ABC-1234-app-not-working | ABC-1234: | [ABC-1234] |
ABC-1234-app-not-working | ABC-1234: | [ABC-1234] |
ABC-1234 | ABC-1234: | [ABC-1234] |
12345-app-not-working | 12345: | [12345] |