https://github.com/poad/github-pull-request-auto-merge-enable-action
https://github.com/poad/github-pull-request-auto-merge-enable-action
action github-actions pull-requests
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/poad/github-pull-request-auto-merge-enable-action
- Owner: poad
- License: mit
- Created: 2021-06-23T10:15:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2026-04-22T09:33:59.000Z (about 1 month ago)
- Last Synced: 2026-04-22T11:33:35.837Z (about 1 month ago)
- Topics: action, github-actions, pull-requests
- Language: TypeScript
- Homepage:
- Size: 16.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# github-pull-request-auto-merge-enable-action
[](LICENSE)

[](https://GitHub.com/poad/github-pull-request-auto-merge-enable-action/releases/)
Enables auto merge to Pull Request by [octokit/graphql.js](https://github.com/octokit/graphql.js/).
## Useage
```$yaml
- name: Enables auto merge to Pull Request
uses: poad/github-pull-request-auto-merge-enable-action@v2.1.0
with:
pull_request_number: { number of GitHub Pull Request }
github_token: { GitHub token for Pull Request creation }
owner: { name of repository owner }
merge_method: { merge method }
with_approve: { true or false }
```
| **Input** | **Require** | **Description** |
|--------------------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `pull_request_number` | Y | number of GitHub Pull Request |
| `github_token` | N | GitHub token for Pull Request creation |
| `owner` | Y | name of repository owner |
| `merge_method` | N | merge method. see [GitHub API Docs](https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge) |
| `with_approve` | Y | true if the Pull Request is approved. see [GitHub API Docs](https://docs.github.com/en/graphql/reference/mutations#submitpullrequestreview) |
### Reference Information
[Auto Merge](https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge)
[Approve](https://docs.github.com/en/graphql/reference/mutations#submitpullrequestreview)
#### The following parameters are not supported
- authorEmail
- clientMutationId
- commitBody
- commitHeadline
## Outputs
not supported