mirror of
https://github.com/juliangruber/find-pull-request-action.git
synced 2026-02-24 16:31:05 +00:00
A GitHub Action for finding pull requests.
| .github/workflows | ||
| dist | ||
| .gitignore | ||
| action.yml | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
find-pull-request-action
A GitHub Action for finding pull requests.
Usage
steps:
- name: Find Pull Request
uses: juliangruber/find-pull-request-action@v1
id: find-pull-request
with:
branch: my-branch-name
- run: echo "Pull Request ${number} (${sha})"
env:
number: ${{ steps.find-pull-request.outputs.number }}
sha: ${{ steps.find-pull-request.outputs.head-sha }}
Query pull requests based on these inputs:
branchbaseauthorstatereposortdirectionlabels
For the first matching pull request, these outputs will be set:
numbertitleurlhead-refhead-shabase-refbase-shabase-repostateauthor
See action.yml for more details.
Related
- approve-pull-request-action — Approve a Pull Request
- merge-pull-request-action — Merge a Pull Request
- octokit-action — Generic Octokit.js Action
License
MIT