You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Merge button silently bypasses branch rules for admins with bypass permission #44264
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
On a GitHub repository, protect the default branch with a ruleset or branch protection that requires status checks and/or approvals.
Be a repository admin with bypass permission.
Open a pull request that has not yet met those requirements (required checks pending or approvals missing).
Open the pull request in the T3 Code PR panel and click Merge.
Expected behavior
A plain Merge click never bypasses rules. When the PR is BLOCKED, Merge is disabled, or the panel offers auto-merge / the merge queue when available.
For a viewer who can bypass rules, merging past the block requires a separate, clearly labelled confirmation, such as "Merge without waiting for requirements (bypass rules)", as on github.com.
Actual behavior
The PR merges immediately, ignoring the ruleset. There is no warning and no bypass confirmation, so the admin overrides the guardrails without opting in. On github.com the same PR shows "Merging is blocked" and only offers bypass through an explicit checkbox.
This matches the 24 Nov 2026 report in #25583 (merge past a pending required check as a bypass-capable admin), which was on 0.1.12-nightly, so it is not fixed in recent nightlies.
The cause appears to be that the merge action never consults mergeStateStatus, so the mergePullRequest mutation is sent while the PR is BLOCKED, and GitHub lets bypass-capable actors through it.
Activity