This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
🎯 Close Incomplete Issues #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Close any issue that does not match any of the issue templates | |
name: 🎯 Close Incomplete Issues | |
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.GITHUB_TOKEN }} | |
closed-issues-label: 'Non-conforming Issue' | |
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 :) |