---
title: "Auto-merge under required reviews: what a late push slips through | Proofline"
description: "Auto-merge merges the moment every requirement is met, so it is only as strict as the rules behind it."
url: https://proofline.sh/learn/auto-merge-and-required-reviews/
---

[Learning center](/learn/)

# Auto-merge under required reviews: what a late push slips through

Auto-merge merges the moment every requirement is met, so it is only as strict as the rules behind it. Turn on stale-approval dismissal or last-push approval before you allow auto-merge, or a commit pushed after approval can merge as soon as CI passes, without anyone reading it.

Code review The Proofline team November 23, 2026 4 min read

## What auto-merge does

Auto-merge "merges a pull request automatically after all required reviews and status checks pass." A repository administrator must first allow it; then people with write permissions can enable it on a pull request. The button appears "only on pull requests that cannot be merged immediately," such as when required reviews or required checks are not yet met. [Automatically merging a pull request](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request) It has been generally available since 4 February 2021. [Pull request auto-merge is now generally available](https://github.blog/changelog/2021-02-04-pull-request-auto-merge-is-now-generally-available/)

The docs name two events that turn it off once it is on: "Auto-merge is disabled if someone without write permissions pushes new changes to the head branch or switches the base branch." [Automatically merging a pull request](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request) They list no such effect for a push from someone with write access, including the author, so expect auto-merge to stay enabled after one.

Auto-merge adds no check of its own. It waits for whatever the branch rules require and merges when they are satisfied. Every gap in those rules is a gap auto-merge passes through without anyone at the merge button to notice.

## A fictional late push

Suppose a fictional repository, `acme/app`, requires one approval and a passing `test` check on `main`, with neither stale-approval dismissal nor last-push approval. Kai opens a pull request that adds a new onboarding screen behind a feature flag. Lin reviews it and approves. The tests are still running, so Kai clicks Enable auto-merge and moves on.

Twenty minutes later Kai remembers that product wanted the screen on by default for new accounts. He pushes one commit that flips the flag's default to `true`. Kai has write access, so auto-merge stays on. The test suite reruns and passes, because the tests set the flag explicitly. Lin's approval still counts. The pull request merges a few minutes later with a behavior change that Lin never saw and that nobody chose to merge at that moment.

Each setting changes the outcome differently:

| Setting on `main` | What happens after Kai's push |
| --- | --- |
| Neither | Lin's approval still counts; auto-merge merges when `test` passes |
| Dismiss stale approvals | Lin's approval is dismissed; auto-merge waits until someone approves again |
| Last-push approval | Kai is the last pusher; auto-merge waits until someone other than Kai approves after the push |
| Required check that is skipped | A skipped required check counts as passing, so a check skipped for this push lets auto-merge proceed |

The last row is a separate gap: "Required status checks must have a `successful`, `skipped`, or `neutral` status." [About protected branches](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-status-checks-before-merging) The [guide to skipped jobs](/learn/skipped-job-satisfies-required-check/) shows how a job's `if:` condition can satisfy a requirement without running.

## What the settings do not catch

With dismissal on, auto-merge waits for a new approval, and the reviewer who gives it may not read the new commit. With last-push approval, any writer other than Kai can unblock it. Neither setting tells the reviewer that auto-merge is armed, so a re-approval given as "looks fine, still approved" merges immediately.

Auto-merge also merges into whatever the base branch is at that moment. If strict status checks are off, the docs warn that "status checks may fail after you merge your branch if there are incompatible changes with the base branch." Two green pull requests with auto-merge on can merge one after the other and break `main` together. A merge queue tests each pull request against the latest target branch and the pull requests already in the queue. [Require merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-merge-queue) On a branch that requires one, Merge when ready takes the place of the repository's auto-merge setting. [Automatically merging a pull request](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/automatically-merging-a-pull-request) The [merge queue guide](/learn/merge-queue-required-checks/) covers what the queue needs to run required checks.

## The cost of keeping auto-merge honest

Dismissal makes auto-merge stall after every push. The author sees "auto-merge enabled" and assumes the pull request is on its way, while it is waiting for a review request nobody sent. Teams that adopt dismissal with auto-merge need the habit of re-requesting review after each push, or a notification that says the approval was dismissed.

Last-push approval stalls less, because only one fresh approval is needed. On a pull request with several required approvals, that is often the better fit.

## Decide and configure

Before you select **Allow auto-merge** in the repository's general settings, check the rule on the target branch:

1.  Turn on **Dismiss stale pull request approvals when new commits are pushed**, **Require approval of the most recent reviewable push**, or both, so that a late push cannot ride an old approval.
2.  Make sure each required check runs on every pull request it should gate, or fails when it cannot decide.
3.  On busy branches, require a merge queue so that auto-merge enters the queue instead of merging against a stale base.
4.  Tell authors that a push after enabling auto-merge needs a new approval, and that they should re-request review with a one-line note of what changed.

If you allow bots to enable auto-merge on their own pull requests, the same rules apply to them; the [dependency bot guide](/learn/dependency-bot-pull-request-review/) covers which bot updates should merge on checks.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Should new commits dismiss an approval on a pull request?](/learn/dismiss-stale-approvals-on-new-commits/)
    
    Code review The Proofline team November 23, 2026 4 min read
    
-   ### [Last-push approval or stale-approval dismissal: which to require](/learn/require-approval-of-most-recent-push/)
    
    Code review The Proofline team November 23, 2026 4 min read
