dkarter/Merge Train Action
Safely prepares labeled pull requests for merge-train workflows.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 20, 2026
- License
- None
Pinned Snippet
uses: dkarter/merge-train-action@f5ab4116d9fdef9ff49068f73362ec72a9c2d8a7 # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Token used for pull request update/check/comment/merge API calls (requires contents:write, pull-requests:write, issues:write, statuses:read; add checks:write when rerun-failed-checks is enabled). | yes | — |
| label-name | Label that marks pull requests as merge-train candidates. | no | ready-to-merge |
| wait-timeout-seconds | Maximum seconds to wait for required checks before blocking. | no | 600 |
| poll-interval-seconds | Poll interval in seconds for mergeability and check state. | no | 15 |
| rerun-failed-checks | Whether to request one-time rerun for failed required check-runs. | no | true |
| pause | Whether to pause merge-train processing and exit as a clean no-op. | no | false |
| pause-reason | Optional operator-provided reason emitted in logs when pause is enabled. | no | "" |
| trust-same-repo-only | Require pull requests to originate from the same repository before merge-train execution. | no | true |
| trust-min-author-association | Optional minimum pull request author association (NONE, FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, CONTRIBUTOR, COLLABORATOR, MEMBER, OWNER). | no | "" |
| trust-author-allowlist | Optional comma-separated list of trusted PR author logins; allowlisted authors bypass minimum author association checks. | no | "" |
| trust-require-approved-review | Require GitHub review decision to be APPROVED before merge-train execution. | no | false |
| auto-delete-source-branch | Attempt to delete the merged pull request source branch after merge when safe checks pass (same repository, branch exists, and token can delete refs). | no | false |
Outputs
| name | description |
|---|---|
| label-name | Label value used by the action run. |
| status | Final state (`merged`, `blocked`, or `noop`) for downstream steps. |