Skip to content

PR Assign Label

PR Assign Label #6144

name: PR Assign Label
# auto label pr who is approved by 2 guys.
env:
LABEL: pr/approved,pr/need-release-label
on: pull_request_review
jobs:
labelWhenApproved:
name: Label when approved
runs-on: ubuntu-latest
steps:
# https://github.com/abinoda/label-when-approved-action
- name: Label when approved
uses: pullreminders/[email protected]
env:
APPROVALS: "2"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_LABEL: ${{ env.LABEL }}
# REMOVE_LABEL: "..."