GitLab: approvals vanish after a push
By default, GitLab removes the approvals of a merge request when more changes are added after them (Premium and Ultimate). The activity then shows reset approvals from (name) by pushing to the branch, and the merge request needs its approvals again (GitLab docs: approval settings and preventing approval resets in automated merge requests, checked November 19, 2026).
What resets, and what does not
- GitLab identifies the diff of a merge request with
git patch-idand compares the new one with the previous one before it resets approvals. Agit rebase, or merging the target branch into the source, that leaves the diff the same does not have to reset them. - Approvals are also tied to Remove approvals by Code Owners if their files changed: that setting removes only the approvals of Code Owners whose files change.
- While GitLab syncs approvals,
detailed_merge_statusreadsapprovals_syncing("The merge request's approvals are syncing."). It passes by itself; read the merge request again a moment later.
To see that approvals are what a merge request lacks: Merge Request (MR) Review Inbox for GitLab, a plugin for JetBrains IDEs, lists the merge checks from detailed_merge_status with the blocking ones first.
Keep approvals when more changes arrive
A Maintainer or Owner opens Settings > Merge requests, scrolls to Merge request approvals > Approval settings, clears Remove all approvals and selects Save changes. Do it only if your process accepts a change that no reviewer has seen.
A bot or script that approves at once
If automation creates a merge request through the API and approves it immediately, it may approve before the commit is fully processed, and adding a commit resets existing approvals by default. The activity then shows this sequence: the bot approved, the bot added 1 commit, approvals from the bot were reset by pushing to the branch. GitLab gives two remedies:
- Wait until
detailed_merge_statusis neithercheckingnorapprovals_syncingand the merge request diff has apatch_id_shathat is not null, then approve. - Or send the
shain the approve call. GitLab records the approved version even though no diff exists yet, so a later push does not reset it.
curl --request POST --header "PRIVATE-TOKEN: your-token" --data "sha=HEAD_SHA" \ "https://gitlab.com/api/v4/projects/group%2Fproject/merge_requests/42/approve"
If the approve call itself is refused, see why GitLab refused the approval.
GitLab merge requests in IntelliJ IDEA
Merge Request (MR) Review Inbox for GitLab, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a merge request's merge checks before you merge: approvals, requested changes, unresolved threads, the pipeline, conflicts, and GitLab's other reasons from detailed_merge_status, with the ones that block the merge first, and the head pipeline with a link. Approvals still needed and changes requested are among them, so you see that a push took approvals away. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab approval refused (401, 409) · GitLab merge refused (405, 409, 422) · GitLab status checks must pass (status_checks_must_pass) · GitLab comment or thread refused