1.2.0 ā€¢ Published 2 months ago

omni-commit-tool v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Omni commit tool

npm.io

Creating a commit made easy.

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

  2. Enter your commit message

  3. Decide whether to tag a Jira issue

    3.1 If choosing yes, input the Jira issue number.

  4. Enter the commit category if applicable

  5. Your commit is now complete

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
ConfigDefault
Use emojifalse
Jira prefixOCPD
Jira format{{prefix}}-{{issueId}}

Use emoji

Control emoji is prepended on the commit message

Set Jira prefix

Change Jira prefix on tag Jira issues

Set Jira format

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

Config path

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

Commit types path

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

Default list

Inspired by cz-cli and OwlTing/cz

1.2.0

2 months ago

1.1.4

5 months ago

1.2.1

2 months ago

1.1.3

5 months ago

1.1.1

5 months ago

1.1.2

5 months ago

1.1.0

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago