Merge pull request #11270 from haslinghuis/rename_attr
[betaflight.git] / .github / workflows / issues.yml
blob22ef8e95b2e054daf355e540120daae5df6c69a9
1 name: Issues
3 on:
4   issues:
5     types: [opened, edited]
7 jobs:
8   auto_close_issues:
9     name: Check if issues follow the templates
10     runs-on: ubuntu-latest
11     steps:
12       - name: Checkout templates
13         uses: actions/checkout@v2.3.4
14       - name: Automatically close issues that don't follow the templates
15         uses: ergo720/auto-close-issues@v1.0.4
16         with:
17           github-token: ${{ secrets.GITHUB_TOKEN }}
18           issue-close-message: >
19             @${issue.user.login}: This issue is being automatically closed because it does not follow the template.\n\n
20             **When you open an issue or feature request you are presented with a template. Follow the guidelines**.\n\n
21             You can edit your message to fix this and the issue will be automatically reopened.
22           closed-issues-label: Not following template