ShellMagick / commit-hooks

Commit hooks based on experience, needs in teams I have worked, and acquired taste.
MIT License
0 stars 0 forks source link

Hook checking branch is expected #5

Open AFulgens opened 8 months ago

AFulgens commented 8 months ago

Context

commiticketing prefixes commits on ephemeral branches based on the branchname. An additional hook should pre-check whether we are at all on such a branch

Idea

This hook would essentially be a counterpart to no-commit-to-branch, ca. "only-commit-to-branch" with a list of accepted branch name RegExes.