From ae8bd76ca4b20d9476eefaeb60c78c4cd7a1af62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A8be=20-=20Romain=20Gerard?= Date: Sun, 30 Jun 2024 10:35:16 +0200 Subject: [PATCH] Create auto-close --- .github/workflows/auto-close | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-close diff --git a/.github/workflows/auto-close b/.github/workflows/auto-close new file mode 100644 index 0000000..6e80bf1 --- /dev/null +++ b/.github/workflows/auto-close @@ -0,0 +1,16 @@ +on: + issues: + types: [opened, edited] + +jobs: + auto_close_issues: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Automatically close issues that don't follow the issue template + uses: lucasbento/auto-close-issues@v1.0.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property + closed-issues-label: "bad-issue-template"