Repository navigation
2026.11.10
On GitHub Actions, the mergify-test-engine-setup and mergify-ci skills and the test clients' READMEs now set up jobs with OIDC: id-token: write on the job and no MERGIFY_TOKEN. Writing a trust policy needs no Enterprise plan, and the CLI's help and the skills no longer say it does: every plan can. mergify ci junit-process no longer fails a job whose ID token Mergify refuses, mergify stack list no longer reads a pull request as failing on a neutral check, and a command run with no credential tells an AI agent to ask its user to log in. The summary the test clients print is now headed "Mergify Test Engine": see Before you upgrade if a script looks for "Mergify CI".
Before you upgrade
- The summary every test client prints at the end of a run is now headed "Mergify Test Engine" instead of "Mergify CI". A script that finds it by its header must look for
===== Mergify Test Engine =====(pytest-mergify),Mergify Test Engine:(rspec-mergify),# Mergify Test Engine:(minitest-mergify),⎯⎯⎯⎯⎯⎯⎯ Mergify Test Engine ⎯⎯⎯⎯⎯⎯⎯(@mergifyio/vitest),Mergify Test Engine ────────(@mergifyio/playwright) orMergify Test Engine(@mergifyio/jest and @mergifyio/mocha). The lines under it are unchanged.
Test clients
These apply to every test client: pytest-mergify, rspec-mergify, minitest-mergify, @mergifyio/vitest, @mergifyio/playwright, @mergifyio/jest and @mergifyio/mocha.
- The summary at the end of a run is now headed "Mergify Test Engine", in each framework's own shape: what it reports (quarantine, flaky detection, test retry, the upload) is Test Engine's. Until now, it was headed "Mergify CI".
- Each client's README now sets up a GitHub Actions job with OIDC: grant the job
id-token: writeand set no token, and the client exchanges the job's ID token for a Mergify token once a trust policy of your organization allows the job.MERGIFY_TOKEN, an application key with theciscope, is for any other CI. Until now, every README had you store a key asMERGIFY_TOKEN, on GitHub Actions too. The pytest-mergify and rspec-mergify READMEs also say where pip or Bundler installs an older release, which cannot exchange the ID token and still needsMERGIFY_TOKEN. See https://docs.mergify.com/integrations/gha/oidc/.
CI
- In a GitHub Actions job granted
id-token: writewith noMERGIFY_TOKEN,mergify ci junit-processnow carries on without Mergify when Mergify refuses the job's ID token, as it does until a trust policy matches the job: it uploads nothing, quarantines no test, and exits with the tests' verdict, 1 when a test failed and 0 otherwise. Its report says why under "Test results not uploaded", a::warning::annotation says it too, and thetest_results_uploadoutput isrejected. Until now, it exited with code 8 and failed the job, whilemergify ci scopes-sendand the test clients warned and carried on. A job with neither a token norid-token: writestill fails, and aMERGIFY_TOKENthat is set is still used as is.
OIDC
- The help of
mergify oidc trust-policiesno longer says creating or editing a policy needs a plan that includes CI authentication with OIDC: every plan can, with an organization admin or CI Admin.mergify oidc --helpnow says OIDC is in Preview, open to every organization, and may still change.
Stacks
mergify stack listnow counts a check that concludesneutralas passing, in its text and--jsonoutput, asmergify queue showalready does. Until now, such a pull request showed "CI: ✗ failing" and the check had"status": "failure": on a repository with a merge queue, whose "Mergify Merge Queue" check concludesneutralon every pull request that is not queued, every stack read as failing while all its checks had passed.
Auth
- A
mergifycommand run with no credential now also says that an AI agent cannot completemergify auth login, since a person approves it in a browser, and should ask its user to run it, then run the command again. Until now, it only said to runmergify auth loginor setMERGIFY_TOKEN: an agent that ran the login waited on an approval nobody gave, and one that did not looked elsewhere instead of asking. Themergify cicommands' message is unchanged.
Agent skills
- The
mergify-test-engine-setupskill now sets up GitHub Actions jobs with OIDC:id-token: writeon each job that reports, never on the whole workflow, no token on the step, and the upload skipped on a pull request from a fork. It checks for a trust policy and offers to write one; when you cannot, it gives you the command for an organization admin or CI Admin and opens its pull request as a draft until the policy exists. It uses a key only on another CI or when you ask for one. Until now, it fell back to a key whenever it could not tell whether a trust policy existed. Its pytest and containers references now passACTIONS_ID_TOKEN_REQUEST_*through tox'spass_envand into the container, without which the plugin there had no ID token to exchange. - The
mergify-ciskill's GitHub Actions examples now use OIDC, withid-token: writeand noMERGIFY_TOKEN, and it says howmergify ci junit-processcarries on when the ID token is refused. - The
mergify-ciandmergify-test-engine-setupskills no longer say writing a trust policy needs the Enterprise plan, only an organization admin or CI Admin. Until now, the setup skill sent an agent to a key when Mergify answered HTTP 402, or when you did not know whether a policy existed, saying OIDC replaced it on the Enterprise plan. - The
mergify-merge-queue,mergify-merge-protections,mergify-config,mergify-ciandmergify-eventsskills now tell an agent that meets a missing Mergify credential to stop, not to runmergify auth loginitself, and to ask you to run it (in Claude Code,! mergify auth loginat the prompt), then retry the same command.