mirror of
https://github.com/pockethost/pockethost.git
synced 2025-10-14 00:59:25 +00:00
chore(root): enforce commitlint only on master branch
This commit is contained in:
parent
b105c77b20
commit
338ef3b172
@ -1 +1,5 @@
|
||||
npx --no -- commitlint --edit $1
|
||||
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
if [ "$branch" = "master" ]; then
|
||||
npx --no -- commitlint --edit $1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user