From a2146761058d0dc91b147faf18d0fc789cf6185f Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Sat, 20 Feb 2021 12:57:45 +0800 Subject: [PATCH] ci: add issue reply manual invalid --- .github/workflows/issue-reply.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/issue-reply.yml b/.github/workflows/issue-reply.yml index 95f908ab33..b0d9b6dc5f 100644 --- a/.github/workflows/issue-reply.yml +++ b/.github/workflows/issue-reply.yml @@ -61,3 +61,15 @@ jobs: Hi @${{ github.event.issue.user.login }}. Current version (3.x) is off the maintenance period. We may not accept pull request or fix bug with it anymore. This topic will be auto closed. 你好 @${{ github.event.issue.user.login }},当前版本(3.x)已经过了维护期。我们不会再接受对其的相关 PR 与 issue。当前 topic 会被自动关闭。 + + - name: invalid + if: github.event.label.name == 'Invalid' + uses: actions-cool/issues-helper@v1.2 + with: + actions: 'create-comment,close-issue' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + body: | + Hello @${{ github.event.issue.user.login }}, your issue has been closed because it does not conform to our issue requirements. Please use the [Issue Helper](http://new-issue.ant.design) to create an issue, thank you! + + 你好 @${{ github.event.issue.user.login }},为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 [issue 助手](http://new-issue.ant.design) 来创建 issue 以方便我们定位错误。谢谢配合!