GitHub Action Reference
Every input and output of the Mergifyio/gha-mergify-ci GitHub Action, by action.
uses: Mergifyio/gha-mergify-ci@v35
One action, several jobs: the action
input picks what a step does, and every input and output below lists the actions that
use it. This page is generated from the action's
action.yml at v35.
For workflows that put it to work, see the GitHub Actions integration, CI Insights on GitHub Actions and Scopes.
Actions
action: junit-process
process JUnit XML files with Mergify CI Insights (Upload and Quarantine)
Inputs: action token mergify_api_url job_name report_path test_step_outcome mergify_cli_version
Outputs: test_results_upload
action: scopes
detect and upload pull requests scopes to Mergify Merge Queue
Inputs: action token mergify_api_url scopes all_scopes skip_when_mergify_unavailable mergify_config_path base head mergify_cli_version
action: scopes-git-refs
return the base/head git references of the pull request in Merge Queue context
action: scopes-upload
upload pull requests scopes to Mergify Merge Queue
Inputs: action token mergify_api_url scopes all_scopes skip_when_mergify_unavailable mergify_config_path mergify_cli_version
action: wait-jobs
wait for specified jobs to complete before proceeding
Inputs: action jobs mergify_cli_version
Inputs
action
The Mergify CI action:
- junit-process: process JUnit XML files with Mergify CI Insights (Upload and Quarantine)
- scopes: detect and upload pull requests scopes to Mergify Merge Queue
- scopes-git-refs: return the base/head git references of the pull request in Merge Queue context
- scopes-upload: upload pull requests scopes to Mergify Merge Queue
- wait-jobs: wait for specified jobs to complete before proceeding
Used by: junit-process scopes scopes-git-refs scopes-upload wait-jobs
token
A Mergify application key granted CI Reporting, defaulting to the job's MERGIFY_TOKEN. Optional in a job granted id-token: write: without a key, the Mergify CLI trades the job's GitHub ID token for a Mergify token, if a trust policy of your organization allows the job. A key wins over the ID token.
Used by: junit-process scopes scopes-upload
job_name
Override the job name, must be used in case of matrix job to avoid having the same name for all jobs
Used by: junit-process
scopes
Comma separated list of scopes to upload (actions: scopes, scopes-upload). With action: scopes, they are added to the scopes detected from the changed files and sent in the same report, e.g. the scopes your build tool knows on top of the configuration file filters. Mergify adds them only if scopes.source declares manual: null beside files, and the Merge Queue then waits for the report of each pull request it queues. With files alone, Mergify ignores them and uses the file filters only.
Used by: scopes scopes-upload
all_scopes
Declare that the pull request impacts all scopes (actions: scopes, scopes-upload). The Merge Queue treats such a pull request as a barrier: it conflicts with every scope, so it is never batched or merged in parallel with other pull requests. Typical use: a build-system or CI configuration change where enumerating every impacted scope is brittle. With action: scopes, it counts only if scopes.source declares manual: null beside files, as for scopes; with files alone, list such files in barrier_files instead.
Used by: scopes scopes-upload
mergify_config_path
Path to the Mergify configuration file
Used by: scopes scopes-git-refs scopes-upload
base
Base git reference for scope detection (action: scopes). Overrides the automatic push/pull-request detection. Leave unset to auto-detect.
Used by: scopes
head
Head git reference for scope detection (action: scopes). Defaults to HEAD. Leave unset to auto-detect.
Used by: scopes
test_step_outcome
Outcome of the test runner step (e.g. steps.<id>.outcome). Pass this to detect silent failures where the test runner crashed but the JUnit report appears clean. Values: 'success', 'failure', 'cancelled', 'skipped', or omit entirely. 'skipped' is treated the same as omitting this input.
Used by: junit-process
mergify_cli_version
Version of mergify-cli to install. Use latest to install the latest released version without pinning. Leave unset to use the version pinned by Mergifyio/setup-cli.
Used by: junit-process scopes scopes-git-refs scopes-upload wait-jobs
Outputs
test_results_upload
Outcome of the JUnit test-results upload to Mergify Test Engine (action: junit-process): 'success', 'rejected' or 'failed'. 'rejected': Mergify refused the upload, e.g. from a key not granted CI Reporting, or the job's ID token got no Mergify token, e.g. when no trust policy of your organization allows the job. 'failed': a transient upload error. Empty when the junit-process step did not run or the installed mergify-cli predates this output.
Set by: junit-process
scopes
stringified JSON mapping with names of all scopes matching any of the changed files
Set by: scopes
base
The Merge Queue-aware base SHA of the pull request. On a merge queue batch built on other batches, scopes-git-refs and scopes-upload give the top of those batches, which the batch's scopes are detected from. From mergify-cli 2026.11.20, scopes gives the commit of the base branch below them instead, so that a diff from it holds every pull request that merges when the batch passes.
Set by: scopes scopes-git-refs scopes-upload
head
The Merge Queue-aware head SHA of the pull request
Set by: scopes scopes-git-refs scopes-upload
Was this page helpful?
Thanks for your feedback!