Skip to content

Commit bf3a4cc

Browse files
committed
chore(deps): deps
1 parent 50ce68c commit bf3a4cc

File tree

3 files changed

+5012
-7189
lines changed

3 files changed

+5012
-7189
lines changed

.husky/pre-push

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
23

34
export NVM_DIR="$HOME/.nvm"
45
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
56

6-
npx branch-name-lint .branchlintrc
7+
BRANCH_NAME=$(git symbolic-ref --short HEAD)
8+
REGEX='^(renovate|feature|bugfix|hotfix|release|chore)\/[a-z0-9\-]+$'
9+
10+
if ! [[ $BRANCH_NAME =~ $REGEX ]]; then
11+
echo "Invalid branch name: $BRANCH_NAME" // EN: "Invalid branch name: $BRANCH_NAME"
12+
echo "Branch names must follow the pattern: e.g. feature/my-feature"
13+
exit 1
14+
fi

0 commit comments

Comments
 (0)