mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 02:26:46 +00:00
✨ Add GitHub action to label approved PRs (#1638)
This commit is contained in:
parent
b87072bc12
commit
ca4cf7cc70
1 changed files with 14 additions and 0 deletions
14
.github/workflows/pr-approvals.yml
vendored
Normal file
14
.github/workflows/pr-approvals.yml
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
name: Label approved pull requests
|
||||||
|
on: pull_request_review
|
||||||
|
jobs:
|
||||||
|
labelWhenApproved:
|
||||||
|
name: Label when approved
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Label when approved
|
||||||
|
uses: pullreminders/label-when-approved-action@v1.0.7
|
||||||
|
env:
|
||||||
|
APPROVALS: "2"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ADD_LABEL: "approved-2"
|
||||||
|
REMOVE_LABEL: "awaiting%20review"
|
||||||
Loading…
Reference in a new issue