File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313# Block commits to protected branches (universal set — safe for all models).
1414case " $current_branch " in
15- develop|release|main|release/ * )
15+ develop|release|main)
1616 echo " ERROR: direct commits to protected branches are forbidden ($current_branch )." >&2
1717 echo " Create a short-lived branch and open a PR." >&2
1818 exit 1
@@ -44,8 +44,8 @@ case "$branching_model" in
4444 allowed_display=" feature/*, bugfix/*, hotfix/*, or promotion/*"
4545 ;;
4646 library-release)
47- allowed_regex=' ^(feature|bugfix|hotfix)/'
48- allowed_display=" feature/*, bugfix/*, or hotfix /*"
47+ allowed_regex=' ^(feature|bugfix|hotfix|release )/'
48+ allowed_display=" feature/*, bugfix/*, hotfix/*, or release /*"
4949 ;;
5050 " " )
5151 echo " WARNING: branching_model not found in $profile_file ; falling back to feature/*/bugfix/*." >&2
You can’t perform that action at this time.
0 commit comments