Skip to content

Instantly share code, notes, and snippets.

@anatooly
Created October 26, 2022 16:03
Show Gist options
  • Save anatooly/264da67c8368a2de09834e60fe6dcd32 to your computer and use it in GitHub Desktop.
Save anatooly/264da67c8368a2de09834e60fe6dcd32 to your computer and use it in GitHub Desktop.
validate-branch-name
"postinstall": "husky install",
"validate-branch-name": {
"pattern": "^(feature|release|hotfix)/(KB-[0-9]+)-([a-zA-Z]+)",
"errorMsg": "Invalid branch name, please use name rule like this: feature/KB-123-implementNewLogic"
}
husky
husky-check-email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment