knockaway/Upsert PR Action
Creates or updates a PR, where both actions are independently configurable.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | Token to be used in the GitHub API calls. | yes | — |
| pr_source_branch | The branch to use as the "from" / "head" side of the PR. | yes | — |
| pr_destination_branch | The branch to use as the "to" / "base" side of the PR. | yes | — |
| create_pr_title | The title to use if creating a PR. | yes | — |
| update_pr_title | The title to use if updating a PR. | no | — |
| create_pr_body | The description to use if creating a PR. | no | — |
| update_pr_body | The description to use if updating a PR. | no | — |
| create_pr_reviewers | Comma separated list of GitHub usernames to be added as reviewers if creating a PR. | no | — |
| update_pr_reviewers | Comma separated list of GitHub usernames to be added as reviewers if updating a PR. | no | — |
| update_pr_rerequest_reviewers | Comma separated list of GitHub usernames to request reviews from, even if they have already reviewed the PR. | no | — |
| create_pr_draft | Whether or not to create a draft PR, if creating a PR. | no | — |
| create_pr_template_file | If create_pr_body is not provided, create_pr_template_file can specify a template for new PRs. | no | .github/pull_request_template.md |
| create_pr_body_template_vars | JSON containing key/values to replace <!-- --> markdown comment template variables, if creating a PR. | no | — |
| update_pr_body_template_vars | JSON containing key/values to replace <!-- --> markdown comment template variables, if updating a PR. | no | — |
Outputs
| name | description |
|---|---|
| pr_created | "true" or "false" to indicate a PR was created or already existed. |
| pr_url | URL of the PR, whether it was created or updated. |
| pr_number | The PR number of the created/updated PR. |