Skip to content

Make Git Protection branch defaults editable - #21

Merged
glockbender merged 1 commit into
mainfrom
codex/git-protection-edit-defaults
Nov 28, 2026
Merged

glockbender merged 1 commit into
mainfrom
codex/git-protection-edit-defaults

Conversation

@glockbender

Copy link
Copy Markdown
Owner

Changes

  • Edit Default and Protected branches separately for Push, Force Push, and Delete Remote Branch. Each change shows the old and new levels and requires confirmation before it is saved.
  • Apply the new levels in the branch preview, in both agent hooks, and in the Git executor. Ordinary Push also supports branch patterns and stricter per-repository rules.
  • Preserve the original levels for existing settings. Each edited level can be restored from its editor.

Verification

  • task verify and task verify-all passed on the current main base, including the published update probe. The local JetBrains plugin check was skipped because no supported IDE was installed.
  • Verified confirmation, cancellation, saving, and restoring the original level in an isolated macOS app. Hook tests cover separate policies for Claude Code and Codex, and executor tests verify the matching confirmation and block behavior.

@glockbender
glockbender merged commit 5d4ab88 into main Nov 28, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant