From 311f6cd0a83ae157b979b4a08496cf1b8c33a804 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 25 Sep 2023 09:25:39 +0800 Subject: [PATCH] update: issue bot close duplicate issue --- .github/workflows/issuebot.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issuebot.yml b/.github/workflows/issuebot.yml index a5e4921a..72ae5c6b 100644 --- a/.github/workflows/issuebot.yml +++ b/.github/workflows/issuebot.yml @@ -31,7 +31,18 @@ jobs: steps: - uses: actions-cool/issues-helper@v3 with: - åactions: close-issue, create-comment + actions: close-issue, create-comment token: ${{ secrets.GITHUB_TOKEN }} body: | Hello @${{ github.event.issue.user.login }}. This issue is marked as `invalid` and closed. Please make sure you are reporting an issue and following the issue template. + issue-duplicate: + name: close duplicate issue + if: github.event.label.name == 'duplicate' + runs-on: ubuntu-latest + steps: + - uses: actions-cool/issues-helper@v3 + with: + actions: close-issue, create-comment + token: ${{ secrets.GITHUB_TOKEN }} + body: | + Hello @${{ github.event.issue.user.login }}. This issue is marked as `duplicate` and closed. Please make sure you have searched to see if an issue already exists for the bug you encountered.