Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacogr/action-approve
Approve PRs based on label and author
https://github.com/jacogr/action-approve
Last synced: about 1 month ago
JSON representation
Approve PRs based on label and author
- Host: GitHub
- URL: https://github.com/jacogr/action-approve
- Owner: jacogr
- License: apache-2.0
- Created: 2022-02-23T08:06:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T07:02:50.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T16:38:30.709Z (about 2 months ago)
- Language: TypeScript
- Size: 1.39 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## action-approve
Approve GitHub actions based on labels and authors.
Example config -
```
name: Auto-approve pull requeston: pull_request
jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: jacogr/action-approve@master
with:
authors: jacogr
labels: autoapprove
token: ${{ secrets.GITHUB_TOKEN }}
```To only run on labelled PRs, the following adjustment to the on logic can be made -
```
on:
pull_request:
types: [labeled]
```Required fields are -
- `authors` - a comma-seperated list of authors this applies to
- `labels` - a comma-seperated list of labels this applies to
- `token` - a secret GitHub token (with applicable repo rights)