Skip to content

Commit 0a47441

Browse files
author
Jean-Michel Cazaux
committed
Accounting for PR comments
1 parent 358a1ea commit 0a47441

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
name: Check the compliance of your branch name
1515
description: Checks that the name of the branch you are committing to is compliant with a given regex
1616
entry: pre_commit_hooks/check-branch-name.sh
17-
language: script
17+
language: script
18+
pass_filename: false

pre_commit_hooks/check-branch-name.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [[ $BRANCH_NAME_REGEX == "" ]]; then
1818
echo " hooks:"
1919
echo " - id: check-branch-name"
2020
echo " args:"
21-
echo ' - "-r^(ci|docs|feature|fix|hotfix|perf|refactor|test)\/.*$"'
21+
echo ' - "-r^(((ci|docs|feature|fix|hotfix|perf|refactor|test)\/.*)|main)$"'
2222
exit 1
2323
fi
2424

0 commit comments

Comments
 (0)