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!

:necktie: Adds an action to close spammy issues

Alicia Sykese27cfc72810f
diff --git a/.github/workflows/issue-spam-control.yml b/.github/workflows/issue-spam-control.yml
new file mode 100644
index 00000000..f1386f02
--- /dev/null
+++ b/.github/workflows/issue-spam-control.yml
@@ -0,0 +1,27 @@
+on:
+ issues:
+ types: [opened, reopened]
+jobs:
+ greet:
+ runs-on: ubuntu-latest
+ name: Close issue opened by non-stargazer
+ steps:
+ - name: close
+ uses: uhyo/please-star-first@v1
+ with:
+ token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ message: |
+ Welcome to Dashy πŸ‘‹
+ It's great to have you here, but unfortunately your ticket has been closed to prevent spam and low quality issues. Please ensure the following criteria are met, before reopening this issue.
+
+ Issues are sometimes closed when users:
+ - Have only recently joined GitHub
+ - Have not yet stared this repository
+ - Have not previously interacted with the repo
+
+ Before you reopen this issue, please also ensure that:
+ - You have checked that a similar issue does not already exist
+ - You have checked the documentation for an existing solution
+ - You have completed the relevant sections in the Issue template
+
+ Once you have verified the above standards are met, you may reopen this issue.