Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a49b41b
commit a790753
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
# find-pull-request-action | ||
# approve-pull-request-action | ||
|
||
A GitHub Action for finding pull requests. | ||
A GitHub Action for approving pull requests. | ||
|
||
## Usage | ||
|
||
```yaml | ||
steps: | ||
- uses: juliangruber/find-pull-request-action@master | ||
id: find-pull-request | ||
- uses: juliangruber/approve-pull-request-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: my-branch-name | ||
- run: echo "Your Pull Request has number ${number}" | ||
if: success() && steps.find-pull-request.outputs.number | ||
env: | ||
number: ${{ steps.find-pull-request.outputs.number }} | ||
number: 1 | ||
``` | ||
|
||
Currently this will find a single open PR based on given `branch` input. For more options please open an issue. | ||
|
||
## License | ||
|
||
MIT |