vankka/Pull Request Target Branch Action
A action to check that a PR's target branch is correct, commenting and/or changing it if required
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| target | The target branch | yes | — |
| exclude | A list (space separated string) of base branches which are allowed to PR the given target (cannot be used with include) | no | — |
| include | A list (space separated string) of base branches which are not allowed to PR the given target (cannot be used with exclude) | no | — |
| change-to | The branch the PR's target should be changed to if the target is incorrect | no | — |
| comment | The comment that will be posted when the target branch is incorrect | no | — |
| already-exists-action | The action to take if a pr with the same head & base already exists | no | error |
| already-exists-comment | The comment to post if a pr with the same head & base already exists | no | — |
| already-exists-other-comment | The comment to post on the other pr if already-exists-action closes the other pr | no | — |
Outputs
| name | description |
|---|---|
| wrong-target | Boolean output indicating if the target branch was incorrect |
| comment-posted | The comment that was posted, if any |
| new-target | The new target, if the target was changed |
| pr-already-exists | If a pr with the same head & base already exists |