1.2.0 • Published 10 months ago

@n6ai/verify-commit-msg v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

@n6ai/verify-commit-msg

Verifies the format of a commit message. Intended to be used with simple-git-hooks.

Setup

  1. Install packages:
npm i -D simple-git-hooks
  1. Add postinstall script and add a commit-msg hook to package.json:
{
  "scripts": {
    "postinstall": "simple-git-hooks"
  },
  "simple-git-hooks": {
    "commit-msg": "npx @n6ai/verify-commit-msg@latest $1"
  }
}
  1. Register Git Hooks:
npm i

Commit message

Messages must be matched by the following regex:

/^(revert: )?(feat|fix|docs|style|refactor|perf|test|build|ci|chore|types|release|deps)(\(.+\))?(\!)?: .{1,50}/
1.2.0

10 months ago

1.1.0

10 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago