Liu Song’s Projects


~/Projects/uptime

git clone https://code.lsong.org/uptime

Commit

Commit
03aeab04219b6c4e2ef003aaddcb6301fc772f97
Author
Louis Lam <[email protected]>
Date
2021-12-06 17:31:25 +0800 +0800
Diffstat
 .github/workflows/close-issue.yml | 17 +++++++++++++++++

close issues that don't follow the issue template

Copy from axios


diff --git a/.github/workflows/close-issue.yml b/.github/workflows/close-issue.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2127fe16609a8e7f4ecb75debbf40f9afc0ae71a
--- /dev/null
+++ b/.github/workflows/close-issue.yml
@@ -0,0 +1,17 @@
+name: 'Close Invalid Issues'
+
+on:
+  issues:
+    types: [opened]
+
+jobs:
+  auto_close_issues:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Automatically close issues that don't follow the issue template
+        uses: lucasbento/[email protected]
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          issue-close-message: 'Hello! :wave: \n\nThis issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue. \n\nThanks'