π³ Tool for gitmoji commits linked to an issues
This is a fork π΄ of seatonjiang's gitmoji-vscode
- Open Visual Studio Code.
- Press
Ctrl+Shift+X
to open the Extensions tab. - Type
gitmoji-linked-commits
to find the extension. - Click the
Install
button, then theEnable
button.
branchTaskPattern
- Configure regexp pattern to extract task id from branch name. Default is[a-zA-Z]+/(\d+)-.*
in UI and"[a-zA-Z]+/(\\d+)-.*"
in JSON.
Sample configuration:
- Redmine (extracts
12345
from branch in formatfeat/12345-some-feature
)
{
"gitmoji-linked-commits.branchTaskPattern": "[a-zA-Z]+/(\\d+)-.*"
}
- Clickup (extracts
CU-ASDASD
from branch in formatfeat/CU-ASDASD-some-feature
)
{
"gitmoji-linked-commits.branchTaskPattern": "[a-zA-Z]+/(CU-\\w+)-.*"
}
β When you're setting branch task pattern in settings UI, instead of setting it directly in JSON, you don't need to escape back slash char with
\
and[a-zA-Z]+/(CU-\w+)-.*
is perfectly valid pattern then.
descriptionTaskPrefix
- Configure prefix of task id in commit description. Default is"#"
.
Sample configuration:
{
"gitmoji-linked-commits.descriptionTaskPrefix": ""
}
outputType
- Configure the type of emoji output as needed. Default isemoji
Sample configuration:
{
"gitmoji-linked-commits.outputType": "emoji"
}
Notice: If you use Gitlab, type emoji, if you use Github, you can type code or emoji.
additionalEmojis
- Add configurable additionnal emojis.
Sample configuration:
{
"gitmoji-linked-commits.additionalEmojis": [
{
"emoji": "π",
"code": ":bug:",
"description": "Fix a bug."
},
{
"emoji": "π",
"code": ":ambulance:",
"description": "Critical hotfix."
}
]
}
onlyUseAdditionalEmojis
- Use your additional emojis instead the ones from the extension.
Sample configuration:
{
"gitmoji-linked-commits.onlyUseAdditionalEmojis": true
}
showEmojiCode
- Enable searching gitmojis by emoji code (example: ambulance will return hotfix).
Sample configuration:
{
"gitmoji-linked-commits.showEmojiCode": true
}
We welcome all contributions. You can submit any ideas as pull requests or as issues, have a good time! :)
The project is released under the MIT License, see the LICENCE file for details.