1.0.1 • Published 7 years ago
@endemolshinegroup/git-author-check v1.0.1
@endemolshinegroup/git-author-check
A pre-commit tool that validates the commit authors' email address.
Installation
yarn add -D husky @endemolshinegroup/git-author-checkUsage
This package uses Cosmiconfig to load its' configuration, so you can add a configuration file in one of the following ways:
- a
gitauthorcheckproperty in package.json
{
"gitauthorcheck": {
"allowedDomains": [
"endemolshine.com"
]
},
}- a
.gitauthorcheckrcfile in JSON or YAML format - a
.gitauthorcheckrc.jsonfile - a
.gitauthorcheckrc.yaml,.gitauthorcheckrc.yml, or.gitauthorcheckrc.jsfile - a
gitauthorcheck.config.jsorgitauthorcheck.config.tsfile exporting a JS object
{
"allowedDomains": [
"endemolshine.com"
]
}Then add the following to your Husky configuration file:
{
"hooks": {
"pre-commit": "git-author-check"
}
}