Skip to content

Auto-merge Renovate PRs through the Mergify merge queue - #299

Merged
nafg merged 1 commit into
mainfrom
mergify-automerge
Oct 14, 2026
Merged

nafg merged 1 commit into
mainfrom
mergify-automerge

Conversation

@nafg

@nafg nafg commented Oct 14, 2026

Copy link
Copy Markdown
Member

Renovate's automerge uses GitHub's auto-merge. Since main has no required checks, that doesn't wait for the build check added in #297. This moves auto-merging to Mergify:

  • renovate.json: drop the automerge rule. Renovate still opens the PRs but no longer merges them.
  • .mergify.yml (new; this repo had none):
    • Every PR authored by renovate[bot] is put into the default merge queue, whatever the update type, majors included.
    • The queue merges a PR only once check-success = build.
    • update_method: rebase + merge_method: merge: the PR is rebased onto main and then merged with a merge commit (semi-linear history), per Mergify's merge strategies docs.

PRs from anyone else aren't queued automatically, and manual merges are unaffected.

Not yet verified: how the rebase plays out on a real Renovate PR. In particular, no update_bot_account is set, so Mergify rebases through GitHub's API as itself. Most Renovate PRs here touch .github/workflows/pages.yml, and I couldn't find in Mergify's docs whether that matters. The first Renovate PR after merge will show it.

🤖 Generated with Claude Code

Renovate's own automerge (GitHub auto-merge) doesn't wait for the
build check, since main has no required checks. Instead, Mergify
queues every Renovate PR, rebases it onto main, and merges it with a
merge commit once the build check passes, for semi-linear history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T04:55:15.335322Z fad7df4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@nafg
nafg merged commit f38b128 into main Oct 14, 2026
6 checks passed
@nafg
nafg deleted the mergify-automerge branch October 14, 2026 04:54

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fad7df4bf2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .mergify.yml
merge_conditions:
- check-success = build
# Semi-linear history: rebase the PR onto main, then merge it with a merge commit
update_method: rebase

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Configure the queue so the requested rebase actually occurs

update_method: rebase only updates branches when Mergify performs in-place checks, but this queue uses a separate merge_conditions phase and leaves merge_queue.max_parallel_checks at its default of 5, so Mergify instead tests a temporary batch PR and then merges the original, unre­based PR head. Consequently, a Renovate PR created from an older main produces ordinary branching history rather than the semi-linear history promised by the comment. Mergify documents both the in-place-check requirements and that update_method applies to in-place updates; either make the queue eligible for in-place checks or select a method that lands the tested batch branch.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant