Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T23:53:57.000Z (9 months ago)
- Last Synced: 2024-04-14T10:49:58.676Z (9 months ago)
- Topics: action, github-actions, pull-requests
- Language: TypeScript
- Homepage:
- Size: 10.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-pull-request-auto-merge-enable-action
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE)
![CI](https://github.com/poad/github-pull-request-auto-merge-enable-action/workflows/CI/badge.svg)
[![GitHub release](https://img.shields.io/github/release/poad/github-pull-request-auto-merge-enable-action.svg)](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/[email protected]
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