Open somombo opened 2 years ago
add the following pre-commit hook
branch="$(git rev-parse --abbrev-ref HEAD)" if [ "$branch" = "main" ]; then echo "Dev Branch commit is blocked" exit 1 fi if [ "$branch" = "master" ]; then echo "Master Branch commit is blocked" exit 1 fi
add to https://github.com/product-os/dreamsheets-scripts/blob/master/config/project.husky/pre-commit
Lucian mentioned this should probably be controlled at the repo settings level
add the following pre-commit hook