Skip to content

2026.11.9

Choose a tag to compare

@mergify-ci-bot mergify-ci-bot released this 16 Nov 16:05
· 12 commits to main since this release
Immutable release. Only release title and notes can be modified.
1deed87

mergify oidc writes the trust policies that let GitHub Actions jobs reach Mergify with their ID token instead of a MERGIFY_TOKEN key and reads why a job's exchange was refused, and the mergify-test-engine-setup skill now sets up OIDC on GitHub Actions. mergify stack push rebases an approved stack when the rebase changes no diff, and mergify stack sync keeps the conflict resolution a pull request's branch took from its base. pytest-mergify gives each rerun its own pytest-timeout timer, and a serial Mocha run under --bail reruns a failure before it stops.

Test clients

These apply to every test client: pytest-mergify, rspec-mergify, minitest-mergify, @mergifyio/vitest, @mergifyio/playwright, @mergifyio/jest and @mergifyio/mocha.

  • The "Fail First" block now ends with a link to its docs, https://docs.mergify.com/test-engine/fail-first/, as the quarantine block does.
  • The test retry block now lists, under "Failed anyway:", a test that passed on a retry but that the framework still failed, such as a pytest test whose fixture teardown errored or a Mocha test whose afterEach hook failed, and says the run fails on it. Until now, it said every test a retry rescued did not fail the run, while the job failed on it.
  • In pytest-mergify, rspec-mergify, minitest-mergify and a serial @mergifyio/mocha run, test retry now retries a failing test that flaky detection found too slow to rerun, on its own budget and within its per-test limit. Until now, such a failure was neither rerun nor retried, and the test retry block said Mergify had retried it and could not afford another attempt.

pytest-mergify

  • With pytest-timeout, each of flaky detection's reruns and test retry's retries now gets a timer of its own, as long as the first attempt's: around the whole attempt by default, around its call under timeout_func_only. Until now, by default one timer ran through the first attempt and every rerun: a rerun slower than the first could run into it, which failed a new test on a pull request, or, when it fired between two phases, stopped the whole run with an INTERNALERROR, its remaining tests unrun and no Mergify summary. Test retry's retries, which ran with no timer at all, now get one too. A test whose first attempt came within 10% of its timeout is still not rerun, and the advice to set timeout_func_only is gone.

@mergifyio/mocha

  • In a serial run with --bail, flaky detection and test retry now rerun a failing test before Mocha stops the run, as pytest's -x and RSpec's --fail-fast already allow: a test they rescue no longer stops the run, and one they do not stops it as before. Mocha's own --retries still come first. Until now, under --bail a failing tracked test was neither rerun nor retried, and the run stopped on it.

OIDC

  • mergify oidc now shows in --help, the man page and the published schema. mergify oidc trust-policies list, show, create, update and delete write the trust policies that let GitHub Actions jobs reach Mergify with their ID token instead of a stored MERGIFY_TOKEN, and mergify oidc exchanges list and show read the exchange report: a refused job's log names its exchange, and show gives, per policy, the first line the job did not match. Until now, you wrote policies and read exchanges in the dashboard, under Settings, Developer, OIDC. See https://docs.mergify.com/integrations/gha/oidc/.
  • The commands take the organization with --org, else the owner of the current repository, and repositories by name (NAME or OWNER/NAME). create defaults every line no flag names (every repository, any workflow, the CI events, any environment), and update changes only the lines its flags name. Every command takes --json. They need an organization owner or CI Admin signed in with mergify auth login, or an application key with the OIDC trust policies permission: a ci key is refused. environment-variables.json lists them as readers of MERGIFY_TOKEN and MERGIFY_API_URL.

Stacks

  • mergify stack push now rebases a stack with approved pull requests onto its trunk when the rebase changes no commit's diff, and says the approvals are kept: GitHub keeps an approval through such a push. Until now, any approval skipped the rebase and left the stack behind its trunk. The rebase is still skipped when a commit's diff would change, the replay conflicts, the repository's Mergify configuration has a dismiss_reviews rule or cannot be read, the bottom pull request is in a merge queue, or the repository is on GitHub Enterprise Server. --skip-rebase still holds it back.
  • When a pull request's branch took its base branch through a merge on top of your commit (Mergify's conflict resolution, GitHub's "Update branch" or "Resolve conflicts"), mergify stack sync, and the rebase mergify stack push runs, now apply your change as that merge resolved it: no conflict is left when the trunk has not moved since, only the conflicts of its new commits when it has. Until now, they stopped on the very conflict the merge had resolved, and you resolved it again by hand. A merge on a version of the commit you amended since is not kept, and sync warns that the next push replaces it.
  • When mergify stack push skips the rebase (--skip-rebase, approvals to keep, a pull request in a merge queue), it now leaves as it is a pull request whose branch carries such a merge on your unchanged commit, and says so, in the dry run too. Until now, it pushed your commit over the merge: the pull request lost the resolution and conflicted again, and nothing said so. A merge on a commit you amended is still replaced, and the push now says that too.
  • mergify stack sync --dry-run now fetches the trunk first and says the branch would be rebased, and how many commits it is behind. Until now, on a stack behind its trunk with nothing merged, it printed "Stack is up to date." and exited 0, while mergify stack sync right after rebased and could stop on a conflict. mergify stack sync itself now says it rebased the branch, where it said "Stack is up to date." after rebasing.

Agent skills

  • The mergify-test-engine-setup skill now decides how the jobs reach Mergify before wiring them. On GitHub Actions it uses OIDC when a trust policy covers the jobs, or proposes the narrowest one and writes it with mergify oidc trust-policies create once you agree, and the jobs get id-token: write and no secret. It falls back to a key on any other CI, without the mergify CLI, or when you cannot write the policy. Until now, it always had you create a key and store it as MERGIFY_TOKEN.
  • The mergify-ci skill documents the mergify oidc commands, how to read a refused exchange, and the refusal reasons a job's log can give (no_policy, no_matching_policy, repository_not_installed, audience_mismatch).
  • The mergify-merge-queue skill now finds the merge queue status comment by its payload and reads the queue state and the dequeue reason from it, paused included. Until now, it looked for a # Merge Queue Status heading the comment no longer carries, so its jq filter found nothing on any pull request.
  • The mergify-test-engine-setup skill no longer says Vitest quarantine skips browser mode and custom runners, and now says that with flaky detection on, the Playwright reporter reruns tests once the run is over: the step takes longer, and on a pull request a new test found flaky fails the step though Playwright's summary lists it as passed.