feat: config-driven protected branch enforcement
Add [protected_branches] config section with fnmatch glob support. Both -d and -D are blocked; JSON error shape: {error, branch, message}.
sha256:0126045405d03ea8b70d2572152fe64c509496d874fa2e96a188685fdf178e61
sha
+42
~7
symbols
sha256:6a034ed1ca13d6984c79c84e85b52b04c8633c1e50eaeeabdb2fdc4519e36782
snapshot
+42
symbols added
~7
symbols modified
0
dead code introduced
Semantic Changes
49 symbols
+
test_returns_empty_when_branches_key_absent
method
method test_returns_empty_when_branches_key_absent L161–169
+
test_returns_empty_when_section_absent
method
method test_returns_empty_when_section_absent L154–159
+
test_delete_protected_branch_exits_nonzero
method
method test_delete_protected_branch_exits_nonzero L186–194
+
test_delete_unprotected_branch_succeeds
method
method test_delete_unprotected_branch_succeeds L205–212
+
test_empty_protected_list_does_not_block
method
method test_empty_protected_list_does_not_block L253–260
+
test_force_delete_protected_branch_also_blocked
method
method test_force_delete_protected_branch_also_blocked L196–203
+
test_json_error_has_error_and_message
method
method test_json_error_has_error_and_message L232–242
+
test_no_protected_config_deletes_normally
method
method test_no_protected_config_deletes_normally L244–251
+
test_protected_branch_still_exists_after_blocked_delete
method
method test_protected_branch_still_exists_after_blocked_delete L262–271
~
run
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:0126045405d03ea8b70d2572152fe64c509496d874fa2e96a188685fdf178e61 --body "your comment"
No comments yet. Be the first to start the discussion.