lee-lott-actions/Merge Pull Request
A GitHub Action to merge a Pull Request using the GitHub REST API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pr-number | The number of the pull request whose review status is to be updated | yes | — |
| repo-name | The name of the repository | yes | — |
| org-name | The name of the GitHub organization | yes | — |
| merge-type | The type of merge to be performed. Allowed values: - merge: Create a merge commit. All commits from the pull request are added to the base branch in a single merge commit. - squash: Combine all commits from the pull request into a single commit, then add that to the base branch. - rebase: Rebase the commits from the pull request onto the base branch individually, without a merge commit. | yes | — |
| merge-title-message | The title for the commit message | yes | — |
| token | GitHub token with access to pull requests | yes | — |
Outputs
| name | description |
|---|---|
| result | Result of the attempt to merge the Pull Request ("success" or "failure") |
| error-message | Error message if the Pull Request merge fails |