From e8d49559c4be2bb858048446d39089d93f3e78ec Mon Sep 17 00:00:00 2001 From: Andrew Altshuler Date: Fri, 15 May 2026 03:32:12 +0300 Subject: [PATCH] branch-protection: allow admin bypass on main (#94) Flip enforce_admins from true to false. Repo admins can now merge their own PRs without waiting for code-owner review, by clicking "Merge without waiting for requirements to be met" once CI is green. The action is recorded in the audit log. Non-admins still see full enforcement: code-owner review required, 1 approving review, required status checks must pass. Rationale: as the solo owner of most CODEOWNERS scopes, the author cannot satisfy GitHub's "non-self approver" rule on their own PRs, which made every PR block on a second human. Admin bypass restores the practical workflow while keeping the protection rules as the default for everyone else. --- .github/branch-protection.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/branch-protection.json b/.github/branch-protection.json index d472de8..61b7d33 100644 --- a/.github/branch-protection.json +++ b/.github/branch-protection.json @@ -11,7 +11,7 @@ "CODEOWNERS / noedit" ] }, - "enforce_admins": true, + "enforce_admins": false, "required_pull_request_reviews": { "dismissal_restrictions": {}, "dismiss_stale_reviews": true,