2024-03-19 08:17:37 +01:00
|
|
|
# Close any issue that does not match any of the issue templates
|
|
|
|
name: 🎯 Close Incomplete Issues
|
2024-03-19 07:43:25 +01:00
|
|
|
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:
|
2024-03-19 08:30:01 +01:00
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2024-03-19 09:34:56 +01:00
|
|
|
closed-issues-label: 'Non-conforming Issue'
|
2024-03-19 08:17:37 +01:00
|
|
|
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 :)
|