Skip to content

pixelygroup/commit-checker

Repository files navigation

commit-checker

Commit screenshot

This utility is primarily design to work with JIRA projects, nevertheless can be used in combination with clickup or other tools relying on ticket numbers (e.g. AB-100). The project prefix is customisable via command line tool. See the configuration section below.

Installation

In your project directory, run following command to install @pixelygroup/eslint-config-px and husky

npm i -D @pixelygroup/commit-checker husky

Configuration

Config screenshot

  1. To use the tool add the following to your package.json:
// package.json
...
"husky": {
  "hooks": {
    "commit-msg": "px-commit -- -E HUSKY_GIT_PARAMS"
  }
},
...
  1. Configure the project code by running the following code from your project folder.
npx px-commit --init

This will crate .pxcommitcheckrc file in the root folder of your project and generate allowed regex strings to match XX-000 some message and Release 1.1.1 commit messages.

Alternatively, you can create the file manually and add your own patterns

/^XX-\d+\s.*$/gm
/^Release \d\.\d\.\d(-.+)?/

More information

For more information about husky visit:

Do you enjoy this package? Help us keep it maintained!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published