Skip to content

Add Mergify merge queue configuration - #19

Merged
linyinfeng merged 1 commit into
mainfrom
mergify-queue-config
Oct 22, 2026
Merged

linyinfeng merged 1 commit into
mainfrom
mergify-queue-config

Conversation

@littlenano

@littlenano littlenano commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Mergify is configured in the dashboard for this repository; there is no .mergify.yml in main. That is why the merge queue behaves inconsistently on pull requests: #17 and #18 got

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

while #16 got

This pull request does not currently match the merge queue conditions, so it cannot be queued from here.

Nothing in the repository says what those conditions are. This adds the configuration as code, holding only what differs from Mergify's defaults:

  • merge_conditions: check-success = check — re-evaluated when the pull request reaches the front of the queue, so a green run from before a rebase does not count;
  • merge_method: rebase with update_method: rebase — linear history, since squash would replace the commit message with the pull request title and drop the Co-authored-by trailer, and merge would keep producing merge commits;
  • commands_restrictions.queue: sender-permission >= write, which is the default, written down so it is obvious that only maintainers can queue.

Everything else is left to the defaults: entry into the queue requires only Mergify's own -closed, -conflict, -draft, autoqueue stays off so nothing enters on its own, and batch_size stays 1. A maintainer ticks the box on Mergify's comment, or comments @mergifyio queue, and the queue merges once check is green.

Because no queue_conditions are set, the queue also accepts pull requests targeting other base branches (Mergify creates one queue per branch); add base = main if that should be restricted.

Note this takes effect only once it is merged into main; until then the dashboard configuration keeps applying. Mergify validates the file on this pull request.

@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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.

@littlenano
littlenano force-pushed the mergify-queue-config branch from ef01387 to 710683f Compare October 22, 2026 06:20
Co-authored-by: Lin Yinfeng <lin.yinfeng@outlook.com>
@littlenano
littlenano force-pushed the mergify-queue-config branch from 710683f to 60faa72 Compare October 22, 2026 06:24
@linyinfeng
linyinfeng merged commit 02d8d36 into main Oct 22, 2026
7 checks passed
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.

2 participants