8bitjonny/Get Current Pull Request
Get the PR associated with the current commit.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Sep 6, 2025
- License
- GPL 3.0
Pinned Snippet
uses: 8bitjonny/gh-get-current-pr@4056877062a1f3b624d5d4c2bedefa9cf51435c9 # 4.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The GitHub token used to create an authenticated client. | no | ${{ github.token }} |
| sha | Sha to get PR for. Defaults to current sha. | no | — |
| filterOutClosed | True, False, 1 or 0 if only open PRs should be returned. Defaults to false. | no | — |
| filterOutDraft | True, False, 1 or 0 if only non-draft PRs should be returned. Defaults to false. | no | — |
Outputs
| name | description |
|---|---|
| pr_found | The outcome if a PR has been found. If so, the other outputs are set. |
| pr | The whole PR object if one was found. |
| number | The PR number if one was found. |
| pr_title | The PR Title if one was found. |
| pr_body | The PR Body if one was found. |
| pr_url | The PR Url if one was found. |
| pr_created_at | The PR Created timestamp if one was found. |
| pr_merged_at | The PR Merged timestamp if one was found. |
| pr_closed_at | The PR Closed timestamp if one was found. |
| pr_labels | The PR Labels if any was found. |