8bitjonny/Get Current Pull Request

Get the PR associated with the current commit.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Sep 6, 2025
License
GPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: 8bitjonny/gh-get-current-pr@4056877062a1f3b624d5d4c2bedefa9cf51435c9 # 4.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenThe GitHub token used to create an authenticated client.no${{ github.token }}
shaSha to get PR for. Defaults to current sha.no
filterOutClosedTrue, False, 1 or 0 if only open PRs should be returned. Defaults to false.no
filterOutDraftTrue, False, 1 or 0 if only non-draft PRs should be returned. Defaults to false.no
namedescription
pr_foundThe outcome if a PR has been found. If so, the other outputs are set.
prThe whole PR object if one was found.
numberThe PR number if one was found.
pr_titleThe PR Title if one was found.
pr_bodyThe PR Body if one was found.
pr_urlThe PR Url if one was found.
pr_created_atThe PR Created timestamp if one was found.
pr_merged_atThe PR Merged timestamp if one was found.
pr_closed_atThe PR Closed timestamp if one was found.
pr_labelsThe PR Labels if any was found.