A pre-compiled version of the CLI is already provided as part of this repository. One can therefore:
# Install the CLI tool
$ npm install -g https://github.com/dev-build-deploy/commit-me
# Run the CLI tool
$ commit-me
NOTE: Creation of an installable package is part of the roadmap!
You can find more information about the possible commands with the --help
flag, i.e.:
$ commit-me --help
Usage: commit-me [options] [command]
Conventional Commit message validation
Options:
-h, --help display help for command
Commands:
check [options] Checks whether your commit messagesare compliant with the Conventional Commit specification.
help [command] display help for command
Running the check
command will perform local validation of your branch.
$ commit-me check --help
Usage: commit-me check [options]
Checks whether your commit messagesare compliant with the Conventional Commit specification.
Options:
-b, --base-branch <branch> The base branch to compare the current branch with.
-s, --scopes [scopes...] Conventional Commits scopes to validate against.
-t, --types [types...] Conventional Commits types to validate against.
-h, --help display help for command
By default, it will use main
as the base branch.
Running this command...
$ commit-me check
...will result in output similar to:
Additionally, you can use the --base-branch
option to change the reference branch to compare with.