Skip to content

Commit

Permalink
chore: update semantic branch naming valid types
Browse files Browse the repository at this point in the history
  • Loading branch information
rackstar committed Sep 27, 2024
1 parent a7348cc commit 2cfe0ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REGEX="^(master|develop|((feat|fix|docs|chore|refactor|release|test)\/.+))$"
REGEX="^(master|dev|release-candidate|((audit|breaking|build|chore|ci|docs|feat|fix|perf|refactor|release|revert|test|wip)\/.+))$"

if ! [[ $BRANCH =~ $REGEX ]]; then
echo "Your commit was rejected due to branching name"
echo "Please rename your branch with $REGEX syntax"
echo "Required prefix can be one of: feat|fix|docs|chore|refactor|release|test"
echo "Required prefix can be one of: master|dev|release-candidate|audit|breaking|build|chore|ci|docs|feat|fix|perf|refactor|release|revert|test|wip"
exit 1
fi

0 comments on commit 2cfe0ef

Please sign in to comment.