Skip to content

Make the Mergify queue rebase PRs in place before merging - #303

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

nafg merged 1 commit into
mainfrom
mergify-inplace-rebase

Conversation

@nafg

@nafg nafg commented Oct 14, 2026

Copy link
Copy Markdown
Member

#299 set update_method: rebase + merge_method: merge for semi-linear history, but #262 landed un-rebased: Mergify tested it on draft #302 (main + a merge of #262) and then merged the original PR on its old base.

Per Mergify's docs, update_method is the "method to use to update the pull request with its base branch when the check is done in place" (queue rules). In-place checks only happen when (batches: in-place checks):

  • batch_size = 1 (default)
  • merge_queue.max_parallel_checks = 1 (default is 5)
  • serial mode (default)
  • max_checks_retries = 0 (default)
  • no two-step CI, i.e. no separate merge_conditions beyond queue_conditions (Auto-merge Renovate PRs through the Mergify merge queue #299 had check-success = build in merge_conditions)

This sets max_parallel_checks: 1 and moves check-success = build into queue_conditions, as in the docs' fast-forward example.

Resulting flow: a Renovate PR enters the queue once its build passes. Mergify then rebases it onto main in place, build runs again on the rebased PR, and once it passes Mergify merges it with a merge commit.

Consequences:

  • build runs twice per PR (entry, then after the rebase), unless the PR is already on current main.
  • Renovate PRs opened before Build the site on pull requests without deploying #297 have no build check, so they need a rebase (Renovate's checkbox or @Mergifyio rebase) before they can enter the queue.

Not yet verified on a real PR. No update_bot_account is set. The docs require one for in-place updates only for fork PRs opened by another app's bot or changing workflows, while Renovate's branches are in this repo.

🤖 Generated with Claude Code

The queue tested Renovate PRs on a draft PR and merged the originals
without rebasing them (#262), because update_method only applies to
in-place checks. Mergify only checks in place with max_parallel_checks: 1
and no separate merge_conditions, so move the build check into
queue_conditions.

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-14T05:04:05.616422Z c2e6db2 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 3d1ed4d into main Oct 14, 2026
6 checks passed
@nafg
nafg deleted the mergify-inplace-rebase branch October 14, 2026 05:03
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