From f445192bb92b792f31fde29e5137bd8e527a1ab4 Mon Sep 17 00:00:00 2001 From: tasi788 Date: Fri, 19 Mar 2021 21:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=80=EF=B8=8F=20?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E6=AA=A2=E6=9F=A5=20issue=20=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=BD=BF=E7=94=A8=E6=A8=A3=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/autoclose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/autoclose.yml diff --git a/.github/workflows/autoclose.yml b/.github/workflows/autoclose.yml new file mode 100644 index 0000000..613c779 --- /dev/null +++ b/.github/workflows/autoclose.yml @@ -0,0 +1,18 @@ +name: autocloseissue + +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}: 嗨 :wave:\n\n這個 issue 似乎沒有使用 issue 樣板提出,因此被我自動關閉了。" + closed-issues-label: "🙁 未依照樣板提出"