Skip to content

Commit 114a17e

Browse files
authored
Merge pull request #164 from basics/feature/deps
chore(deps): deps
2 parents 50ce68c + 735580b commit 114a17e

File tree

3 files changed

+1297
-1411
lines changed

3 files changed

+1297
-1411
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)