Repository navigation
2026.11.1
·
20 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
mergify queue add and mergify queue remove queue and dequeue a pull request from the command line. mergify stack push handles merged and queued pull requests better, runs faster, and says what to do when a rebase stops on a conflict. On CircleCI, and on GitHub merge queue branches on any CI, pull request runs get flaky detection and their target branch's quarantine. The CLI no longer accepts a GitHub token for Mergify's API: read the first section before you upgrade.
Before you upgrade
- The mergify CLI no longer falls back to
GITHUB_TOKENorgh auth tokenwhen it calls Mergify's API, which it has warned about since 2026.10.3. Pass--token, setMERGIFY_TOKEN, or sign in withmergify auth login: without one of them, the command fails and says so.mergify stackstill reads your GitHub token, since it talks to GitHub.
Merge queue
mergify queue add <pull request>asks Mergify to queue a pull request, as thequeuecommand does.mergify queue remove <pull request>takes it out of the queue, or cancels its request while it still waits for its queue conditions, as thedequeuecommand does. Both take a pull request number or URL.- When Mergify refuses, they exit with code 6 and give Mergify's error code, such as
PULL_REQUEST_ALREADY_QUEUED. With--json, they print one JSON document whether Mergify accepted the request or refused it, so a script can read the error code from it.
Stacks
- After the bottom pull request of a stack merged,
stack pushno longer moves the pull request above it onto the merged branch. Once GitHub had deleted that branch, the push failed because the base branch no longer existed. stack pushdrops a merged change even when a pull request of the stack is approved. Until now, it skipped that rebase to keep the approvals, so every pull request above still carried the merged commit. The dry run says the rebase may dismiss approvals, and--skip-rebasestill skips it.- A pull request whose head moved on GitHub before it merged (through "Update branch", a merge queue rebasing it, or a push from another clone) now counts as merged. Until now,
stack pushcould open a second pull request for a change already in the trunk,stack synckept the merged commit, andstack listshowed the change without its pull request. - When every pull request of a GitHub stack has merged, pushing new changes on top registers a new GitHub stack. Until now, the push first tried to extend or unstack the merged stack, which GitHub refuses.
- When a reorder moves a pull request onto the trunk before the push,
stack pushfirst runs your pre-push hooks and checks the push withgit push --dry-run, then moves the pull requests back if the push still fails. Until now, the pull request could sit on the trunk with its old head, which still held the change below it, and a merge queue rule or auto-merge could merge both changes. stack pushno longer rebases onto the trunk when the bottom pull request is in Mergify's or GitHub's merge queue, since rewriting it would take it out of the queue.--force-rebaserebases anyway. Approvals already held the rebase back; this covers repositories that require none.- Before it moves a pull request, or adds it to a GitHub stack,
stack pushturns off GitHub auto-merge on it and prints a line saying so. GitHub refuses to stack a pull request with auto-merge on, and a pull request moved with auto-merge on could merge into its new base on its own. - When GitHub does not register a stack,
stack pushsays why: stacked pull requests are not enabled for the repository, a pull request already belongs to another stack (with a link to that stack), or the pull requests do not form a stack. A registered stack's progress line links its page on GitHub. - When a rebase stops on a conflict, the stack commands name the commit, the pull request and the files in conflict, and list the next steps, including running
mergify stack pushagain. The exit code stays 4. stack syncreports agit pull --rebasefailure that is not a conflict, such as uncommitted changes, with git's own message and exit code 1. It used to report every failure as a conflict, with exit code 4.mergify stack setupoffers to turn on git rerere, so git reuses a conflict resolution when a later rebase hits the same conflict. It asks once per repository, and only on a terminal. Setmergify-cli.stack-rerere-declined = truein your global git config to keep it from asking anywhere.stack pushsends thepull.stackedpush option, asgh stack pushdoes, which tells GitHub the push updates a stack. GitHub does not act on it yet.stack pushmakes fewer GitHub requests and runs more of them at once. On a five-change stack, a push after amending every change went from about 25 to 17 seconds, and a dry run with nothing to do from about 7 to 4 seconds.
CI
- On a GitHub
pushevent,mergify ci scopescompares the pushed commit with the commit the branch held before, rather than diffing from their merge base. A fast-forward push selects the same scopes as before. A push back to an earlier commit, such as a rollback, now selects the scopes of the files it reverts, where it selected none. mergify ci junit-processreads a negative test time as zero. sbt writes one for every ignored ScalaTest test, and the command failed (exit code 101) without uploading the report.mergify ci junit-processreports GoogleTest's and CTest's disabled tests as skipped, where it reported them as passed.
Test clients
These apply to pytest-mergify, rspec-mergify, minitest-mergify, @mergifyio/vitest, @mergifyio/playwright, @mergifyio/jest and @mergifyio/mocha, and to mergify ci junit-process.
- On CircleCI, a pull request's run now counts as a pull request run: flaky detection reruns the tests the pull request adds, and the quarantine comes from the branch it targets. CircleCI does not say which branch a pull request targets, so every run counted as a push of its own branch, and a new flaky test could merge. The run now asks Mergify which open pull request has its commit as head. A build of the default branch stays a push run.
- On any CI provider, a run of a GitHub merge queue branch (
gh-readonly-queue/…) now counts as a pull request into the branch it merges into, for flaky detection and the quarantine. It used to count as a push of the queue branch, so a new flaky test went through the queue, and only a quarantine scoped to every branch applied. - For a test that ran more than once, the clients report how many of its attempts passed, failed or were skipped, across flaky detection, test retry and the framework's own retries. Mergify uses these counts to tell how flaky a test is: a test that failed and then passed on a retry no longer counts as one failure.
pytest-mergify
- A test is reported as failed when one of its subtests failed (pytest's
subtestsfixture or unittest'ssubTest). Until now, it took the first subtest's result, so a test whose first subtest passed was reported as passed. A test that skipped one subtest and passed the rest is reported as passed, not skipped. - Flaky detection, test retry and reruns also count an attempt's subtests. With pytest 9, a rerun whose subtest failed failed the job, flaky detection counted it as a pass, and test retry never retried a test that failed only through a subtest.
- pytest-mergify now declares pytest 7.0 as its minimum. No install could get an older pytest anyway, since pytest-timeout, one of its dependencies, already required 7.0.
@mergifyio/mocha
- The plugin installs with Mocha 8.2 and later, where it required Mocha 10. Run Mocha 8.2 serially: its own parallel mode crashes on current Node.js, with or without the plugin, which Mocha 8.3 fixes.
- On Node.js 26, use Mocha 10.6 or later: older versions of Mocha crash on start there, with or without the plugin.
Agent skills
- The
mergify-stackskill now applies only in repositories that use stacks: the stack commit-msg hook is installed, or recent commits carryChange-Idtrailers. Elsewhere, the agent uses plain git and gh. It no longer keeps pull requests as drafts, and follows the repository's own style for commit titles and branch names. - The other skills load on Mergify-specific words only, rather than on generic ones such as "CI" or "batch".
- A new
mergify-cli-upgradeskill tells an agent what to do when the installed CLI lacks a command or option a skill names: compare the installed version with the latest release, ask you, then upgrade through the tool that installed the CLI. - The
mergify-merge-queueskill coversmergify queue addandmergify queue remove, and suggests them instead of commenting@mergifyio queue. - The
mergify-test-engine-setupskill sets up @mergifyio/mocha on Mocha 8.2 and later.