From fe4a11618d62bfc9cda54fcdcec5e6dff79a05e3 Mon Sep 17 00:00:00 2001 From: BugKing Date: Thu, 9 Dec 2021 15:20:53 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BF=AE=E6=94=B9issues=E5=A4=84?= =?UTF-8?q?=E7=90=86action=E4=B8=AD=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=A1=A8=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-comment.yml | 4 ++-- .github/workflows/issue-open.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml index c7700732a5..cc4161994f 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -7,7 +7,7 @@ name: Add issues workflow labels jobs: add-label-if-is-author: runs-on: ubuntu-latest - if: ${{ github.event.issue.user.id == github.event.comment.user.id }} && ${{ !github.event.issue.pull_request }} + if: ${{ (github.event.issue.user.id == github.event.comment.user.id) && (!github.event.issue.pull_request) }} steps: - name: Add require handle label uses: actions-cool/issues-helper@v2 @@ -23,7 +23,7 @@ jobs: add-label-if-not-author: runs-on: ubuntu-latest - if: ${{ github.event.issue.user.id != github.event.comment.user.id }} && ${{ !github.event.issue.pull_request }} && ${{ github.event.issue.state == 'open' }} + if: ${{ (github.event.issue.user.id != github.event.comment.user.id) && (!github.event.issue.pull_request) && (github.event.issue.state == 'open') }} steps: - name: Add require replay label uses: actions-cool/issues-helper@v2 diff --git a/.github/workflows/issue-open.yml b/.github/workflows/issue-open.yml index f4a6d16ec9..232d5da295 100644 --- a/.github/workflows/issue-open.yml +++ b/.github/workflows/issue-open.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Add labels uses: actions-cool/issues-helper@v2 - if: ${{ !github.event.comment.pull_request.pull_request }} + if: ${{ !github.event.issue.pull_request }} with: actions: 'add-labels' labels: '状态:待处理' \ No newline at end of file