From 4f38f451c52b8f9eba712117be5848b00e42c188 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 4 Mar 2021 22:51:42 +0800 Subject: [PATCH] ci: add issue open check user --- .github/workflows/issue-open-check.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-open-check.yml b/.github/workflows/issue-open-check.yml index a7bdfaf7ab..47d2746520 100644 --- a/.github/workflows/issue-open-check.yml +++ b/.github/workflows/issue-open-check.yml @@ -8,8 +8,13 @@ jobs: check-issue: runs-on: ubuntu-latest steps: + - uses: actions-cool/check-user-permission@v1.0.0 + id: checkUser + with: + require: 'write' + - name: check invalid - if: contains(github.event.issue.body, 'ant-design-issue-helper') == false + if: (contains(github.event.issue.body, 'ant-design-issue-helper') == false) && (steps.checkUser.outputs.result == 'false') uses: actions-cool/issues-helper@v1.2 with: actions: 'create-comment,add-labels,close-issue'