From dbe628a8db1cc579a3be0789126b65351678e4f0 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 3 Dec 2021 14:47:40 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20issue=20=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E6=B7=BB=E5=8A=A0labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-comment.yml | 20 ++++++++++++++++++++ .github/workflows/issue-open.yml | 15 +++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/issue-comment.yml create mode 100644 .github/workflows/issue-open.yml diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml new file mode 100644 index 000000000..19bca0104 --- /dev/null +++ b/.github/workflows/issue-comment.yml @@ -0,0 +1,20 @@ +on: + issue_comment: + types: [created] + +jobs: + add-label-if-is-author: + runs-on: ubuntu-latest + if: ${{ github.event.comment.pull_request.user.id == github.event.comment.user.id }} + steps: + - name: Add require handle label + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待处理' + + - name: Remove require reply label + uses: actions-cool/issues-helper@v2 + with: + actions: 'remove-labels' + labels: '状态:待反馈' diff --git a/.github/workflows/issue-open.yml b/.github/workflows/issue-open.yml new file mode 100644 index 000000000..5307275b8 --- /dev/null +++ b/.github/workflows/issue-open.yml @@ -0,0 +1,15 @@ +name: Issue Open Check + +on: + issues: + types: [opened] + +jobs: + issue-open-add-labels: + runs-on: ubuntu-latest + steps: + - name: Add labels + uses: actions-cool/issues-helper@v2 + with: + actions: 'add-labels' + labels: '状态:待处理' \ No newline at end of file