From e0d4ad8570441f7c69714d5598d7466e0048e2f1 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 7 Dec 2021 10:38:47 +0800 Subject: [PATCH] =?UTF-8?q?workflow:=20=E4=BC=98=E5=8C=96workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-comment.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml index f5c048fb6..414cb4284 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -20,3 +20,19 @@ jobs: with: actions: 'remove-labels' labels: '状态:待反馈' + + add-label-if-not-author: + runs-on: ubuntu-latest + if: ${{ github.event.comment.pull_request.user.id != github.event.comment.user.id }} && ${{ !github.event.comment.pull_request.pull_request }} + steps: + - name: Add require replay label + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待反馈' + + - name: Remove require handle label + uses: actions-cool/issues-helper@v2 + with: + actions: 'remove-labels' + labels: '状态:待处理'