Label approved pull requests #2028
Workflow file for this run
This file contains hidden or 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
on: pull_request_review | |
name: Label approved pull requests | |
permissions: | |
contents: read # Required for checking changed files | |
pull-requests: write # Required for labeling PRs | |
issues: write # Required for adding/removing labels | |
jobs: | |
labelWhenApproved: | |
if: ${{ github.repository_owner == 'armbian' }} | |
name: Label when approved | |
runs-on: ubuntu-latest | |
steps: | |
- name: Label when approved | |
uses: pullreminders/label-when-approved-action@master | |
env: | |
APPROVALS: "1" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ADD_LABEL: "Ready to merge" | |
REMOVE_LABEL: "Needs%20review" |