Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‘·β€β™‚οΈ Adds action to close incomplete issues

Alicia Sykesfcd3d5c7af54
diff --git a/.github/workflows/close-incomplete-issues.yml b/.github/workflows/close-incomplete-issues.yml
new file mode 100644
index 00000000..48357709
--- /dev/null
+++ b/.github/workflows/close-incomplete-issues.yml
@@ -0,0 +1,20 @@
+# Close any issue that does not match any of the issue templates
+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/[email protected]
+ with:
+ github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ closed-issues-label: 'πŸ™ Auto-Closed'
+ issue-close-message: |
+ Hello @${issue.user.login} πŸ‘‹
+ Unfortunately your issue does not follow the format outlined in the template, and has therefore been auto-closed.
+ To ensure that all relevant info is included, please either update or recreate your issue, and complete the sub-headings provided.
+ Thank you :)