From b99c80030e001d44b8e9a3d628c076feb82c1ce0 Mon Sep 17 00:00:00 2001 From: Rocketmq-Rust Bot Date: Thu, 5 Dec 2024 23:38:50 +0800 Subject: [PATCH] [ISSUE #1590]Add Label approved pull requests action --- .../label_approved_pull_requests.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/label_approved_pull_requests.yml diff --git a/.github/workflows/label_approved_pull_requests.yml b/.github/workflows/label_approved_pull_requests.yml new file mode 100644 index 00000000..ce58e676 --- /dev/null +++ b/.github/workflows/label_approved_pull_requests.yml @@ -0,0 +1,19 @@ +name: Label approved pull requests + +on: + pull_request_review: + types: [submitted] + +jobs: + labelWhenApproved: + 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: "approved" + #REMOVE_LABEL: ""