sharesight/Find Github Pull Request
Find a Github Pull Request in a Github Action
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Github Token used to make API request to fetch pull requests from the current owner/repo. | no | ${{ github.token }} |
| commitSha | Commit SHA to find a PR for. Ignored for a pull_request event. | no | ${{ github.sha }} |
| allowClosed | Allow finding closed PRs. Ignored for a pull_request event. | no | false |
| failIfNotFound | Fail if no PR with that sha is found. Ignored for a pull_request event. | no | false |
Outputs
| name | description |
|---|---|
| number | The found PR number (eg. '1234') |
| title | The found PR title, sanitized to be used in a shell environment. |
| body | The found PR description, sanitized to be used in a shell environment. |
| url | The found PR url. |
| base-ref | The found PR's base ref, eg. 'main' or 'master'. |
| base-sha | The found PR's base sha ref's sha, eg. 'main' is currently at 'a1b2c3d4f'. |