{"repo":"8BitJonny/gh-get-current-pr","free":true,"listed":false,"github":"https://github.com/8BitJonny/gh-get-current-pr","clone":"git clone https://github.com/8BitJonny/gh-get-current-pr.git","description":"Github Action for getting all the details about the current Pull Request if the commit is part of one","language":"TypeScript","stars":128,"topics":["github-actions","github-action","automation","javascript","workflow","ci-cd","pull-requests"],"license":"GPL-3.0","category":"workflow-automation","readme_excerpt":"Github Action: Get current PR Github Action for checking if the current commit belongs to a pull request and returning the full PR object if that is the case :thinking: Why? Inside a running github action you can't always get the information whether you are currently in a PR or not. If for example the trigger event is pull request you have that information but not when your trigger event is push . This action enables you to get the PR no matter which event type triggered the workflow. :keyboard: Usage Inputs See action.yml for more details. Outputs See action.yml for more details. JSON output Useful when the information you're looking for is not exported as a direct output of the action. Simply parse the pr output as JSON and navigate the object. See GitHub Documentation for details how the object looks like. Limitations Can't find closed, unmerged PRs Currently, if you try to find a PR that hasn't been merged yet AND which has been closed, then this app will completely fail in finding that PR. This workflow can only find open PRs, draft PRs and closed+merged PRs. See https://github.com/8BitJonny/gh-get-current-pr/issues/165 for the progress on this issue as this might come in a later version. :computer: Contributing Contributions are always welcome!","default_branch":null,"files":null,"tree":[],"storefront":"/r/8BitJonny","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/8BitJonny/gh-get-current-pr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}