Skip to content

Commit

Permalink
feat: Add the Approved Label workflow (TheAlgorithms#830)
Browse files Browse the repository at this point in the history
When a pull request is approved, it'll automatically add the `approved` label.
  • Loading branch information
Panquesito7 authored May 18, 2021
1 parent fb77807 commit 373f9c4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/approved-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: pull_request_review
name: Add "approved" label when approved
jobs:
add_label:
name: Add "approved" label when approved
runs-on: ubuntu-latest
steps:
- name: Add "approved" label when approved
uses: pullreminders/label-when-approved-action@master
env:
APPROVALS: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_LABEL: "approved"
REMOVE_LABEL: ""

0 comments on commit 373f9c4

Please sign in to comment.