Skip to content

[Bug]: Merge button silently bypasses branch rules for admins with bypass permission #44264

Backlog

Description

@pgbezerra

Before submitting

  • 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

  1. On a GitHub repository, protect the default branch with a ruleset or branch protection that requires status checks and/or approvals.
  2. Be a repository admin with bypass permission.
  3. Open a pull request that has not yet met those requirements (required checks pending or approvals missing).
  4. 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.

Related:

Impact

Major degradation or frequent failure

Version or commit

Desktop 0.1.12

Environment

macOS (desktop app), GitHub repository with required checks, authenticated as a repository admin with bypass permission.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions