1.0.8 • Published 3 years ago

@pixelygroup/commit-checker v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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!

Buy us a coffee or become a sponsor

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago