Lesstep
GitHub · pull requests · reviews · Checked November 22, 2026

GitHub: "The merge-base changed after approval."

GitHub marks an approval as stale when the merge base of the pull request changes after the review was submitted. With "Dismiss stale pull request approvals when new commits are pushed" on, the review is then dismissed and the pull request needs a new approval, even though the author pushed nothing. The merge base is the closest common ancestor of the target and source branches. The fix is a new approval from someone whose approval counts (GitHub's changelog of June 6, 2023, checked November 22, 2026).

What GitHub says

To see which approvals still stand on a pull request: Pull Request Inbox for GitHub, a plugin for JetBrains IDEs, lists each reviewer's latest decision, leaves a dismissed review out of it, and says in its merge checks when approvals are still required.

What moves the merge base

In a GitHub Community discussion (#58535, labeled Bug, with no reply from GitHub), people also report the message after merging main into a release branch and with no visible change, where git merge-base printed the same commit before and after. Those are users' accounts, not something GitHub documents.

Check that it is the merge base

List the reviews with the commit each was made at. A dismissed approval has the state DISMISSED:

gh api repos/<owner>/<repo>/pulls/<number>/reviews --paginate \
  --jq '.[] | {id, user: .user.login, state, commit_id}'

Who dismissed it and with what reason is in the pull request's timeline. In GraphQL, ReviewDismissedEvent has the actor, the dismissalMessage and the previousReviewState (GitHub's ReviewDismissedEvent):

gh api graphql -F owner=<owner> -F name=<repo> -F number=<number> -f query='
query($owner: String!, $name: String!, $number: Int!) {
  repository(owner: $owner, name: $name) {
    pullRequest(number: $number) {
      timelineItems(itemTypes: [REVIEW_DISMISSED_EVENT], first: 50) {
        nodes { ... on ReviewDismissedEvent { createdAt dismissalMessage previousReviewState actor { login } } }
      }
    }
  }
}'

To read the merge base GitHub sees now, ask the compare endpoint; run it again after anything that might move it (GitHub's compare two commits):

gh api repos/<owner>/<repo>/compare/<base-branch>...<head-branch> --jq .merge_base_commit.sha

In a local clone, git fetch origin and then git merge-base origin/<base-branch> origin/<head-branch> prints the same commit.

What to do

In the IDE

Pull Request Inbox for GitHub, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, takes each reviewer's latest approval or request for changes as their decision, as GitHub's Reviewers box does. A dismissed review decides nothing, so after the dismissal the reviewer no longer shows as approved. When GitHub reports that a review is still required, the merge checks say so, with the number of approvals the target branch's rules ask for where the plugin can read it. An approval made at an earlier commit than the head is marked "on an earlier commit". The Update branch action brings the target's new commits in with a merge commit, which is one of the things that can dismiss approvals as above, so use it before the review, not after.

The review inbox, diffs, conversations and merge checks are free. Approving, requesting changes, commenting and merging in the IDE are Pro (US$1.50 a month, with a 30-day trial). The approval is sent for the head commit shown on screen.

Get it on JetBrains Marketplace

GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitHub, Inc. or JetBrains.

More: Approval of the most recent reviewable push · Review required, approvals that do not count · Base branch not changing · Branch update refused · Changes requested and dismissing a review · Pull Request is not mergeable · 日本語