omni-commit-tool

1.2.0 • Public • Published

Omni commit tool

Creating a commit made easy.

image

Section Links

Install

npm i -g omni-commit-tool

Uninstall

npm i -g omni-commit-tool

Usage

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

Commit Steps

  1. Choose the desired commit type

    image
  2. Enter your commit message

    image
  3. Decide whether to tag a Jira issue

    image

    3.1 If choosing yes, input the Jira issue number.

    image
  4. Enter the commit category if applicable

    image
  5. Your commit is now complete

    image

Options

      --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

Setting

To access the setting panel, use the following command:

oc --setting
Config Default
Use emoji false
Jira prefix OCPD
Jira format [{{prefix}}-{{issueId}}]

image

Use emoji

Control emoji is prepended on the commit message

image

Set Jira prefix

Change Jira prefix on tag Jira issues

image

Set Jira format

Change Jira format on tag Jira issues, {{prefix}} and {{issueId}} is required

image

Config path

You can find the config path by running oc --config and use an editor to edit it

image

Commit types path

You can find the config path by running oc --types and use an editor to edit it

Default list

image

Inspired by cz-cli and OwlTing/cz

Readme

Keywords

Package Sidebar

Install

npm i omni-commit-tool

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

16.7 kB

Total Files

14

Last publish

Collaborators

  • jonathantang0126