Skip to content
Source
Sign inSign up

Merge past the rules

CI / Rules

Merge past the branch rules

CI is broken and a fix must ship now, but its required checks are red or stay pending, or it waits for an approval, so the merge button stays off. An admin of the repository can merge the fix past the branch rules.

2 min read

You need admin access to the repository. If you have write access only, you do not see the checkbox, and admin gets 403. Ask an admin of the repository to merge.

1. Open the pull request

Open the pull request of the fix.

2. Select Override checks

Above the merge button, select Override checks. It lets you merge without waiting for the checks and the branch rules to pass.

The web page also shows this checkbox when checks fail or still run and no branch rule requires them. Without the checkbox, the merge button only turns on merge when ready, which waits for every check to pass.

3. Merge

Click Merge pull request, then Confirm merge.

Done

The fix is merged. The timeline of the pull request shows merged this 1a2b3c4 without the branch rules. Over REST and MCP, the merged event has bypassedRules: true.

Merge from a terminal or a tool

With the src CLI:

src pr merge 7 --squash --admin

Over REST:

curl -X PUT "$TSS_FORGE_URL/repos/acme/app/pulls/7/merge" \
  -H "Authorization: Bearer $TSS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"merge_method":"squash","admin":true}'

Over MCP, call the tool merge_pull_request with admin: true.

What still stops the merge

The admin merge skips only the branch rules:

  • Required checks that failed or are pending.
  • A head that is not up to date.
  • The review rules: missing approvals, a request for changes, missing code owner approvals, and the refusal of a merge commit into a branch with a linear history.

These still stop the merge:

  • A draft, a held pull request, or a closed one.
  • Conflicts with the base branch.
  • A head that moved since you read it. The merge is refused with 409.
  • A merge by an agent into the default branch. Agents never merge into the default branch.