Scrib3r / husky-check-email

Check domain in email when commiting to git via husky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

husky-check-email

npm license Build Status dependencies Status devDependencies Status Coverage Status Known Vulnerabilities

Add this module to only allow git commits with emails from certain domain.

Install

npm i husky-check-email

Usage (package.json)

If you want to validate only one email:

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-email @mydomain.com"
    }
  }
}

If you want to validate several email domains:

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-email @mydomain.com,@mail.ru"
    }
  }
}

See also

About

Check domain in email when commiting to git via husky


Languages

Language:JavaScript 100.0%