juliangruber/Find Pull Request
A GitHub Action for finding pull requests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub Token | no | ${{ github.token }} |
| branch | The name of the branch from which the pull request was opened. For cross-repository pull requests namespace the branch with user or organization name, i.e. 'user:branch-name' or 'org:branch-name'. | no | — |
| base | The base branch name of the Pull Request | no | — |
| author | The author of the Pull Request | no | — |
| state | The state of the Pull Request. Can be either `open`, `closed` or `all`. | no | open |
| repo | Pull Request repo in owner/repo format | no | — |
| sort | What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month). | no | — |
| direction | The direction of the sort. Can be either `asc` or `desc`. | no | desc |
| labels | A comma-separated list of label names, all of which must be present for the PR to be returned | no | — |
Outputs
| name | description |
|---|---|
| number | The Pull Request's number if one was found (e.g. '345' for |
| title | The Pull Request's title if one was found |
| url | The Pull Request's URL if one was found |
| head-ref | The Pull Request's head ref (branch name) if one was found |
| head-sha | The Pull Request's head sha if one was found |
| base-ref | The Pull Request's base ref (branch name) if one was found |
| base-sha | The Pull Request's base sha if one was found |
| base-repo | The Pull Request's base repository full name (e.g. octocat/Hello-World) |
| state | The Pull Request's open or closed state if one was found |
| author | The Pull Request's author if one was found |
| matching-pr-count | The number of pull requests matching the search criteria |
| matching-pr-numbers | A JSON string representing the array of pull request numbers matching the search criteria, e.g.: `[1,2,3]` |