Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliangruber/find-pull-request-action
A GitHub Action for finding pull requests.
https://github.com/juliangruber/find-pull-request-action
Last synced: about 2 months ago
JSON representation
A GitHub Action for finding pull requests.
- Host: GitHub
- URL: https://github.com/juliangruber/find-pull-request-action
- Owner: juliangruber
- Created: 2019-11-08T09:46:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T07:12:10.000Z (3 months ago)
- Last Synced: 2024-07-20T16:42:30.119Z (2 months ago)
- Language: JavaScript
- Size: 10.3 MB
- Stars: 24
- Watchers: 5
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# find-pull-request-action
A GitHub Action for finding pull requests.
## Usage
```yaml
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:
- `branch`
- `base`
- `author`
- `state`
- `repo`
- `sort`
- `direction`
- `labels`For the first matching pull request, these outputs will be set:
- `number`
- `title`
- `url`
- `head-ref`
- `head-sha`
- `base-ref`
- `base-sha`
- `base-repo`
- `state`See [action.yml](action.yml) for more details.
## Related
- [approve-pull-request-action](https://github.com/juliangruber/approve-pull-request-action) — Approve a Pull Request
- [merge-pull-request-action](https://github.com/juliangruber/merge-pull-request-action) — Merge a Pull Request
- [octokit-action](https://github.com/juliangruber/octokit-action) — Generic Octokit.js Action## License
MIT