amezin/Create or update a pull request
Create or update a pull request through GitHub API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Target repository name with owner | yes | ${{ github.repository }} |
| title | Pull request title | yes | — |
| body | The description of the pull request | yes | This pull request is automatically generated by ${{ github.workflow }} / ${{ github.job }} |
| update | Update existing pull requests | yes | true |
| draft | Create a draft pull request. Ignored for already existing pull requests | yes | false |
| head | Source branch name, without `refs/heads/` | yes | ${{ github.ref_name }} |
| head_sha | Source commit. If specified, source branch's head will be moved to this commit | no | — |
| force | Allow force-pushing the source (head) branch | yes | true |
| base | Target branch name, without `refs/heads/` | yes | ${{ github.event.repository.default_branch }} |
| poll-interval | Polling interval when waiting for PR head to update, in seconds. | yes | 1 |
| poll-repeats | Number of repeated requests when waiting for PR head to update. Total wait time will be poll-interval * poll-repeats. | yes | 10 |
| github-token | GitHub API token to use | yes | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| number | The number of the created/updated pull request |
| url | API URL of the created/updated pull request |
| html_url | Browser URL of the created/updated pull request |
| pull_request | Pull request object as JSON |