Rules - evg4b/fisherman GitHub Wiki
Commit message rules
Commit message prefix
TBD
commit-message-regex
TBD
commit-message-suffix
TBD
File system-based rules
write-file
TBD
Branch name rules
Set of rules that can be used to enforce naming conventions for branches.
branch-name-regex
This rule checks if the current branch name matches a specified regular expression. It can be used to enforce naming conventions for branches.
[hooks.pre-push](/evg4b/fisherman/wiki/hooks.pre-push)
type = "branch-name-regex"
regex = "^(feature|bugfix|hotfix|release)/[a-z0-9-]+$"
branch-name-prefix
This rule checks if the current branch name starts with a specified prefix. It can be used to enforce naming conventions for branches.
[hooks.pre-push](/evg4b/fisherman/wiki/hooks.pre-push)
type = "branch-name-prefix"
prefix = "feature/"
branch-name-suffix
This rule checks if the current branch name ends with a specified suffix. It can be used to enforce naming conventions for branches.
[hooks.pre-push](/evg4b/fisherman/wiki/hooks.pre-push)
type = "branch-name-suffix"
suffix = "-dev"
Other rules
exec-rule
TBD
shell-script
TBD