Repository navigation
2026.11.9
·
12 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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
afterEachhook 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 anINTERNALERROR, 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 settimeout_func_onlyis 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-xand RSpec's--fail-fastalready allow: a test they rescue no longer stops the run, and one they do not stops it as before. Mocha's own--retriesstill come first. Until now, under--baila failing tracked test was neither rerun nor retried, and the run stopped on it.
OIDC
mergify oidcnow shows in--help, the man page and the published schema.mergify oidc trust-policies list,show,create,updateanddeletewrite the trust policies that let GitHub Actions jobs reach Mergify with their ID token instead of a storedMERGIFY_TOKEN, andmergify oidc exchanges listandshowread the exchange report: a refused job's log names its exchange, andshowgives, 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 (NAMEorOWNER/NAME).createdefaults every line no flag names (every repository, any workflow, the CI events, any environment), andupdatechanges only the lines its flags name. Every command takes--json. They need an organization owner or CI Admin signed in withmergify auth login, or an application key with the OIDC trust policies permission: acikey is refused.environment-variables.jsonlists them as readers ofMERGIFY_TOKENandMERGIFY_API_URL.
Stacks
mergify stack pushnow 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 adismiss_reviewsrule or cannot be read, the bottom pull request is in a merge queue, or the repository is on GitHub Enterprise Server.--skip-rebasestill 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 rebasemergify stack pushruns, 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 pushskips 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-runnow 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, whilemergify stack syncright after rebased and could stop on a conflict.mergify stack syncitself now says it rebased the branch, where it said "Stack is up to date." after rebasing.
Agent skills
- The
mergify-test-engine-setupskill 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 withmergify oidc trust-policies createonce you agree, and the jobs getid-token: writeand 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 asMERGIFY_TOKEN. - The
mergify-ciskill documents themergify oidccommands, 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-queueskill now finds the merge queue status comment by its payload and reads the queue state and the dequeue reason from it,pausedincluded. Until now, it looked for a# Merge Queue Statusheading the comment no longer carries, so itsjqfilter found nothing on any pull request. - The
mergify-test-engine-setupskill 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.