Repository navigation
2026.11.17
Each release now pins the Mergify API version it was built against: the test clients and the mergify CLI name it on every request to Mergify, and the last line of these notes says which one. They warn you before Mergify stops serving that version, and when a Mergify server does not serve it, they say so once instead of failing feature by feature. mergify self-update works again on Windows when run from PowerShell 7, mergify oidc trust-policies can cover every repository of a visibility, and on pytest 9.2 pytest-mergify no longer fails a test whose failed subtest flaky detection reran or test retry rescued.
Test clients
These apply to every test client: pytest-mergify, rspec-mergify, minitest-mergify, @mergifyio/vitest, @mergifyio/playwright, @mergifyio/jest and @mergifyio/mocha.
- Every request a client sends to Mergify now carries a
Mergify-Versionheader naming the API version the release was built against,2026-11-16for this one, and Mergify answers with that version's contract for as long as it serves it. Until now, a request named no version, so nothing said which contract a release expected. A Mergify server from before API versions, such as an older on-premise install, ignores the header and answers as before. - Once Mergify gives a date after which it stops serving the release's version, the end-of-run report says so once, right after the deprecated variables, with the package to upgrade:
This release of pytest-mergify calls Mergify's API as version 2026-11-16, which Mergify stops serving on <date> (UTC). Before then, upgrade pytest-mergify.Mergify gives that date only once a newer version is out and a release of the clients pins it, so the upgrade it asks for reaches a version that stays. It gives none for2026-11-16today. - When a Mergify server does not serve the release's version, the client sends it nothing more after its first refusal: no Mergify feature acts on the rest of the run, nothing is uploaded, and the tests keep their own exit code. The end-of-run report says it once, in place of the blocks it would leave empty, with the versions the server serves and the way out: when the server is older than the release, upgrade Mergify or use a release of the client made for a version it serves; when the server stopped serving the release's version, upgrade the client.
pytest-mergify
- On pytest 9.2 and later, a failure of the
subtestsfixture that flaky detection reran, or that test retry held back or rescued, no longer fails its test. Until now, on pytest 9.2, pytest still counted that subtest failure and failed the test, so a test that passed on a retry failed the run anyway. unittest'ssubTestwas not affected, nor were earlier pytest releases.
mergify CLI
- Every request the CLI sends to Mergify now carries the same
Mergify-Versionheader,2026-11-16for this release. Its requests to GitHub do not. - Once Mergify gives the date it stops serving that version, every command prints on stderr, once it is over,
mergify: warning: This release of mergify-cli calls Mergify's API as version 2026-11-16, which Mergify stops serving on <date> (UTC). Before then, upgrade mergify-cli, or the Mergifyio/gha-mergify-ci action that installs it.mergify ci junit-processputs it in its report instead, under "Mergify's API version is ending", with a::warning::annotation on GitHub Actions. - When a Mergify server does not serve that version,
mergify ci junit-processsays so in its report, under "Mergify does not serve this release's API version", with the versions the server serves and the way out, adds an::error::annotation on GitHub Actions, setstest_results_uploadtorejectedand exits as its tests do. Every other command,mergify ci scopes-sendincluded, fails with that message and exit code6. mergify self-updateon Windows now installs the new release when run from PowerShell 7. Until now, it stopped saying the downloaded archive did not contain the expected binarymergify.exe, and the CLI stayed as it was: the Windows PowerShell it unpacks the archive with loaded PowerShell 7'sExpand-Archive, whose latest release Windows PowerShell cannot run.
OIDC
mergify oidc trust-policies createandupdatetake--repository-visibility VISIBILITY, repeatable (public,internal,private), for a policy that covers every repository of those visibilities that Mergify's GitHub App can access, new ones included. It cannot be combined with--repository,--except-repositoryor--all-repositories.listandshowprint such a policy's repositories in words, such asevery internal or private repository, and--jsonprints what Mergify answers. Mergify reads the visibility in the job's ID token, so on a GitHub Enterprise Server whose tokens do not give it, such a policy matches no job. Until now, the CLI could only name a policy's repositories, leave some out, or cover all of them.- Against an on-premise Mergify older than policies by visibility,
--repository-visibilityfails withthis Mergify predates trust policies by repository visibility: name the repositories with --repository or --except-repository, or upgrade Mergify. Any other refusal of acreateorupdateMergify finds invalid now readsMergify refused to create the trust policy: …(orupdate the trust policy <id>) followed by what Mergify found wrong. Until now, it printed Mergify's raw JSON answer.
Agent skills
- The
mergify-ciskill describes--repository-visibilityand when to pick a visibility over a list of repositories. Themergify-test-engine-setupskill says how a policy by visibility covers a repository, and to write a new policy rather than update one by visibility. - The
mergify-merge-protectionsskill now loads when a pull request must not merge before another one, in the same repository or another, when a change split across repositories has to land in order, when a pull request must not merge before a date or a time, or when a ready one has to be held back. Until now, it loaded only for an agent that already named theDepends-OnorMerge-Afterheaders. It also says the headers hold nothing back on a repository where Mergify does not run. - For a commit pushed with
mergify stack pushthat waits on a pull request outside the stack, themergify-merge-protectionsskill now asks forDepends-On: owner/repo#NNNor the pull request's URL, even in the same repository, and themergify-stackskill sends such a commit, or one that waits on a date, to those headers. Until now, the skill gaveDepends-On: #NNN, which the push removes from the pull request's description, so the pull request was no longer held.
Mergify API version 2026-11-16