Skip to content

Commit fed98e8

Browse files
authored
feat: Add the Approved Label workflow (TheAlgorithms#1493)
When a pull request is approved, it'll automatically add the `approved` label.
1 parent a5022c5 commit fed98e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/approved-label.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on: pull_request_review
2+
name: Add "approved" label when approved
3+
jobs:
4+
add_label:
5+
name: Add "approved" label when approved
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Add "approved" label when approved
9+
uses: pullreminders/label-when-approved-action@master
10+
env:
11+
APPROVALS: "1"
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
ADD_LABEL: "approved"
14+
REMOVE_LABEL: ""

0 commit comments

Comments
 (0)