Skip to content

2026.11.17

Choose a tag to compare

@mergify-ci-bot mergify-ci-bot released this 20 Nov 08:06
· 4 commits to main since this release
Immutable release. Only release title and notes can be modified.
8340368

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-Version header naming the API version the release was built against, 2026-11-16 for 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 for 2026-11-16 today.
  • 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 subtests fixture 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's subTest was not affected, nor were earlier pytest releases.

mergify CLI

  • Every request the CLI sends to Mergify now carries the same Mergify-Version header, 2026-11-16 for 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-process puts 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-process says 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, sets test_results_upload to rejected and exits as its tests do. Every other command, mergify ci scopes-send included, fails with that message and exit code 6.
  • mergify self-update on Windows now installs the new release when run from PowerShell 7. Until now, it stopped saying the downloaded archive did not contain the expected binary mergify.exe, and the CLI stayed as it was: the Windows PowerShell it unpacks the archive with loaded PowerShell 7's Expand-Archive, whose latest release Windows PowerShell cannot run.

OIDC

  • mergify oidc trust-policies create and update take --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-repository or --all-repositories. list and show print such a policy's repositories in words, such as every internal or private repository, and --json prints 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-visibility fails with this Mergify predates trust policies by repository visibility: name the repositories with --repository or --except-repository, or upgrade Mergify. Any other refusal of a create or update Mergify finds invalid now reads Mergify refused to create the trust policy: … (or update the trust policy <id>) followed by what Mergify found wrong. Until now, it printed Mergify's raw JSON answer.

Agent skills

  • The mergify-ci skill describes --repository-visibility and when to pick a visibility over a list of repositories. The mergify-test-engine-setup skill says how a policy by visibility covers a repository, and to write a new policy rather than update one by visibility.
  • The mergify-merge-protections skill 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 the Depends-On or Merge-After headers. It also says the headers hold nothing back on a repository where Mergify does not run.
  • For a commit pushed with mergify stack push that waits on a pull request outside the stack, the mergify-merge-protections skill now asks for Depends-On: owner/repo#NNN or the pull request's URL, even in the same repository, and the mergify-stack skill sends such a commit, or one that waits on a date, to those headers. Until now, the skill gave Depends-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