chore(root): enforce commitlint only on master branch

This commit is contained in:
Ben Allfree 2024-05-31 07:05:02 -04:00
parent b105c77b20
commit 338ef3b172

View File

@ -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