Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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