jwalton/Find Current Pull Request
Find a PR associated with the current commit.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The GitHub token used to create an authenticated client. Defaults to github provided token. | no | ${{ github.token }} |
| state | The state of the PR to return. One of "open", "closed", or "all". | no | open |
| sha | SHA to get PR for. Defaults to current pull request SHA or current SHA. | no | ${{ github.event.pull_request.head.sha || github.sha }} |
Outputs
| name | description |
|---|---|
| pr | The PR if one was found. (e.g. '345' for |
| number | The PR's number if the PR was found (e.g. '345' for |
| title | The PR's title if the PR was found |
| body | The PR's body if the PR was found |