Creating a commit made easy.
npm i -g omni-commit-tool
npm i -g omni-commit-tool
oc
Use oc
to replace git commit -m
for the commit message
Omni commit tool will generate commit in the following format:
[Jira issue] type (category): message
// example
[OCPD-1260] 💡 feat(test): commit test
You can ignore the Jira issue and category to generate a simple commit:
type: message
// example
💡 feat: commit test
-
Choose the desired commit type
-
Enter your commit message
-
Decide whether to tag a Jira issue
3.1 If choosing yes, input the Jira issue number.
-
Enter the commit category if applicable
-
Your commit is now complete
--version Show version number
-b, --blank Create blank commit
-r, --revert Create revert commit
-s, --setting Set config
-c, --config Show config path
-t, --types Show commit type list path
--help Show help
To access the setting panel, use the following command:
oc --setting
Config | Default |
---|---|
Use emoji | false |
Jira prefix | OCPD |
Jira format | [{{prefix}}-{{issueId}}] |
Control emoji is prepended on the commit message
Change Jira prefix on tag Jira issues
Change Jira format on tag Jira issues, {{prefix}}
and {{issueId}}
is required
You can find the config path by running oc --config
and use an editor to edit it
You can find the config path by running oc --types
and use an editor to edit it