Skip to content

Commit d486dc7

Browse files
committed
ci: add new rule for special tokenator commits
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 770f21f commit d486dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.git-hooks/commit-msg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PATTERN_SECTION_DEPRECATED="refactor\(deprecated\):|chore\(deprecated\)"
2525
PATTERN_SECTION_FIXED="fix:"
2626
PATTERN_SECTION_SECURITY="fix\(security\):"
2727
PATTERN_SECTION_BREAKING="feat!:|chore!:|refactor!:|fix!:"
28-
PATTERN_SECTION_CHANGED="build:|chore:|chore\(deps\):|ci:|docs:|style:|refactor:|perf:|test:"
28+
PATTERN_SECTION_CHANGED="build:|chore:|chore\(deps\):|chore\(🤖\):|ci:|docs:|style:|refactor:|perf:|test:"
2929

3030
# All acceptable patterns
3131
COMMIT_PREFIX_PATTERN="^($PATTERN_SECTION_ADDED|$PATTERN_SECTION_REMOVED|$PATTERN_SECTION_DEPRECATED|$PATTERN_SECTION_FIXED|$PATTERN_SECTION_SECURITY|$PATTERN_SECTION_BREAKING|$PATTERN_SECTION_CHANGED)"
@@ -45,7 +45,7 @@ if ! [[ "$COMMIT_MESSAGE" =~ $COMMIT_PREFIX_PATTERN ]]; then
4545
echo -e "\tTo fix things............: 'fix:"
4646
echo -e "\tFor security fixes.......: 'fix(security)'"
4747
echo -e "\tFor breaking changes.....: 'feat!:' \t 'chore!:' \t 'refactor!:' \t \t 'fix!:'"
48-
echo -e "\tFor any other changes....: 'build:' \t 'chore:' \t 'chore(deps)' \t 'ci:' \t \t \t 'docs:' \t \t 'style:' \t 'refactor:' \t 'perf:' \t 'test:'"
48+
echo -e "\tFor any other changes....: 'build:' \t 'chore:' \t 'chore(deps)' \t 'chore(🤖)' \t 'ci:' \t \t \t 'docs:' \t \t 'style:' \t 'refactor:' \t 'perf:' \t 'test:'"
4949
echo "Your commit message: '$COMMIT_MESSAGE'"
5050
exit 1
5151
fi

0 commit comments

Comments
 (0)