2021-10-01 22:56:57 +03:00
# Will add a comment and close any new issues opened by
# users who have not yet committed to, or starred the repo
2021-09-12 23:45:41 +03:00
name : 🎯 Issue Spam Control
2021-09-04 21:43:27 +03:00
on :
issues :
types : [ opened, reopened]
jobs :
2021-10-01 22:56:57 +03:00
check-user :
2021-10-15 23:47:46 +03:00
if : >
${{
! contains( github.event.issue.labels.*.name, '📌 Keep Open') &&
! contains( github.event.issue.labels.*.name, '🌈 Feedback') &&
2021-10-17 14:37:25 +03:00
! contains( github.event.issue.labels.*.name, '💯 Showcase') &&
2021-10-15 23:47:46 +03:00
github.event.comment.author_association != 'CONTRIBUTOR'
}}
2021-09-04 21:43:27 +03:00
runs-on : ubuntu-latest
name : Close issue opened by non-stargazer
steps :
- name : close
uses : uhyo/please-star-first@v1
with :
2021-11-10 21:37:14 +03:00
token : ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2021-09-04 21:43:27 +03:00
message : |
Welcome to Dashy 👋
2021-10-17 14:37:25 +03:00
It's great to have you here, but unfortunately your ticket has been closed to prevent spam. Before reopening this issue, please ensure the following criteria are met.
2021-09-04 21:43:27 +03:00
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
2021-10-17 14:37:25 +03:00
Once you have verified the above standards are met, you may reopen this issue. Sorry for any inconvenience caused, I'm just a bot, and sometimes make mistakes 🤖