sprucehealth/Auto-merge Main Branch Into Pull Requests
This action will helps your organization by automatically merging new commits to your main branch into open Pull Requests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| githubToken | a scoped Github token which the action will use to run on your Pull Requests. See the following for an example: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#example-1-passing-the-github_token-as-an-input | yes | main |
| waitMilliseconds | an optional forced wait time (in milliseconds) before this action runs | no | 0 |
| mainBranchName | the name of the main branch for your repo | no | main |
| alwaysMergeIntoAutoMergePRs | when true, `main` will be merged into all PRs with Auto-Merge turned on, regardless of any other conditions | no | false |
| alwaysMergeIntoAutoMergePRsWhenApproved | when true, `main` will be merged into all PRs with Auto-Merge turned on and a PR has been approved, regardless of any other conditions | no | false |
| onlyMergeMainForDraftPullRequests | set to `true` if you would like this action to only run on Pull Requests in the Draft state | no | false |
| onlyMergeBranchesWithPrefixes | an optional comma-separated list of branch name prefixes. This action will only run on Pull Requests whose branch names start with one of these prefixes. | no | false |
| onlyPullRequestsWithLabels | an optional comma-separated list of Pull Request labels required for this action to run on a given Pull Request | no | false |
| skipPullRequestsWithLabels | an optional comma-separated list of Pull Request labels which, when present, will prevent this action from running | no | false |
| maxNumberOfRandomlySelectedPRsToMergeMainInto | an optional maximum number of randomly selected Pull Requests to merge main into. If set, only this many PRs (or fewer if fewer qualify) will be randomly selected from all qualifying PRs and have main merged into them. | no | 50 |
Outputs
no outputs