3dwardch3ng/GitHub Pull Request Action with Auto Merge
Create and Auto Merge GitHub Pull Request
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 7, 2024
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: 3dwardch3ng/github-pull-request@9276e5ed27211d497e55c3d5d4e89a58a04b5509 # v1.0.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The GitHub Token | yes | — |
| repo_owner | The repository owner | yes | — |
| repo_name | The repository name | yes | — |
| remote_name | The remote name, default is origin if not provided | no | origin |
| source_branch | The name of the branch that the new Pull Request will be merged from | yes | — |
| target_branch | The name of the branch that the new Pull Request will be merged to | yes | — |
| pr_title | The title of the Pull Request | yes | — |
| pr_body | The body content of the Pull Request, will use the value of the title if not provided | no | — |
| draft | A draft PR will be created if set to true | no | false |
| require_middle_branch | Will create a branch named SOURCE_BRANCH-merge-to-TARGET_BRANCH to create the Pull Request | no | false |
| auto_merge | Once the Pull Request has been created, whether to merge this Pull Request automatically | no | false |
| merge_method | The merge method when merging the Pull Request, can be "merge", "squash" or "rebase" | no | merge |
| max_merge_retries | When merge the Pull Request fails, the maximum number of the retry times. | no | 60 |
| merge_retry_interval | The interval between each retry, in seconds | no | 60 |
| milestone | The milestone value of the Pull Request | no | — |
| assignees | The assignees value of the Pull Request, seperated by comma | no | — |
| reviewers | The reviewers value of the Pull Request, seperated by comma | no | — |
| team_reviewers | The team reviewers value of the Pull Request, seperated by comma | no | — |
| labels | The labels value of the Pull Request, seperated by comma | no | — |
| signoff | The sign off value of the Pull Request | no | false |
Outputs
| name | description |
|---|---|
| pull-request-number | The Pull Request number |
| pull-request-url | The Pull Request URL |
| pull-request-operation | The Pull Request operation, can be "created", "updated" or "merged" |
| pull-request-created | The Pull Request created or not |
| pull-request-head-sha | The Pull Request head sha |
| pull-request-merge | The Pull Request merge or not |