From 1c6a74269fa30157519ee4d461a3376a89af0887 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Sat, 20 Aug 2022 11:34:32 +0200 Subject: [PATCH] [skip ci] update issue-action.yml --- .github/workflows/issue-action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue-action.yml b/.github/workflows/issue-action.yml index 7a87684e..b59b83bc 100644 --- a/.github/workflows/issue-action.yml +++ b/.github/workflows/issue-action.yml @@ -20,7 +20,7 @@ jobs: token: ${{ steps.generate_token.outputs.token }} filter-threshold: 0.5 title-excludes: '' - comment-title: '### Your issue looks similar to these issues. Please close if duplicate:' + comment-title: '### Your issue looks similar to these issues:.\n\nPlease close if duplicate.' comment-body: '${index}. ${similarity} #${number}' - name: Add eyes reaction to all issues uses: actions-cool/emoji-helper@v1.0.0 @@ -28,3 +28,11 @@ jobs: type: 'issue' token: ${{ steps.generate_token.outputs.token }} emoji: 'eyes' + - name: Automatically close issues that dont follow the issue template + uses: lucasbento/auto-close-issues@v1.0.2 + with: + github-token: ${{ steps.generate_token.outputs.token }} + issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." + losed-issues-label: "invalid" + +