We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 358a1ea commit 0a47441Copy full SHA for 0a47441
2 files changed
.pre-commit-hooks.yaml
@@ -14,4 +14,5 @@
14
name: Check the compliance of your branch name
15
description: Checks that the name of the branch you are committing to is compliant with a given regex
16
entry: pre_commit_hooks/check-branch-name.sh
17
- language: script
+ language: script
18
+ pass_filename: false
pre_commit_hooks/check-branch-name.sh
@@ -18,7 +18,7 @@ if [[ $BRANCH_NAME_REGEX == "" ]]; then
echo " hooks:"
19
echo " - id: check-branch-name"
20
echo " args:"
21
- echo ' - "-r^(ci|docs|feature|fix|hotfix|perf|refactor|test)\/.*$"'
+ echo ' - "-r^(((ci|docs|feature|fix|hotfix|perf|refactor|test)\/.*)|main)$"'
22
exit 1
23
fi
24
0 commit comments