From b8bc2cb4ddc1f35d59b987e8fe132043dad05dd8 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 15 May 2026 03:30:18 +0300 Subject: [PATCH] branch-protection: allow admin bypass on main 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 d472de8db..61b7d3316 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,