We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10f4f87 + 95ffee9 commit 41a9c6eCopy full SHA for 41a9c6e
.husky/commit-msg
@@ -1,4 +1 @@
1
-#!/bin/sh
2
-. "$(dirname "$0")/_/husky.sh"
3
-
4
pnpm commitlint --edit $1
.husky/pre-commit
@@ -1,13 +1,11 @@
. "$(dirname "$0")/common.sh"
5
6
echo "===\n>> Checking branch name..."
7
8
# Check if branch protection is enabled
9
if [[ -z $SKIP_BRANCH_PROTECTION ]]; then
10
- BRANCH=$(git rev-parse --abbrev-ref HEAD)
+ BRANCH=$(git branch --show-current)
11
PROTECTED_BRANCHES="^(main|master)"
12
13
if [[ $BRANCH =~ $PROTECTED_BRANCHES ]]; then
0 commit comments