1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Add action to close issues

This commit is contained in:
Miguel Angel Mulero Martinez 2020-12-03 12:53:07 +01:00
parent c9dd69b19e
commit f9780e95c1
3 changed files with 61 additions and 27 deletions

View file

@ -1,19 +1,21 @@
---
name: Feature Request
about: Suggest an idea for for a new feature for Betaflight
labels: "Template: Feature Request"
---
<!-- This is a template that you must fill. If not, the message will be closed. So don't erase any subtitle in this template (they start with ###)
and complete all of them -->
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
<!-- Please note that feature requests are not 'fire and forget'. It is a lot more likely that the feature you would like to have will be implemented if you keep watching your feature request, and provide more details to developers looking into implementing your feature, and help them with testing. -->
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
### Is your feature request related to a problem? Please describe.
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->
**Additional context**
Add any other context or screenshots about the feature request here.
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
Please note that feature requests are not 'fire and forget'. It is a lot more likely that the feature you would like to have will be implemented if you keep watching your feature request, and provide more details to developers looking into implementing your feature, and help them with testing.
### Additional context
<!-- Add any other context or screenshots about the feature request here. -->

View file

@ -1,27 +1,37 @@
---
name: Firmware Bug Report
about: Create a report to help us fix bugs in the Betaflight firmware
labels: "Template: Bug"
---
<!-- This is a template that you must fill. If not, the message will be closed. So don't erase any subtitle in this template (they start with ###)
and complete all of them -->
**Describe the bug**
A clear and concise description of what the bug is.
### Describe the bug
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
Steps to reproduce the behavior:
### To Reproduce
<!-- Steps to reproduce the behavior -->
**Expected behavior**
A clear and concise description of what you expected to happen.
### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
**Flight controller configuration**
Create a `diff` and post it here in a code block. Put ``` (three backticks) at the start and end of the `diff` block (instructions on how to do a diff: https://oscarliang.com/use-diff-not-dump-betaflight/)
### Flight controller configuration
<!-- Create a diff and post it here in a code block. Put (three backticks) at the start and end of the diff block (instructions on how to do a diff: https://oscarliang.com/use-diff-not-dump-betaflight/)
Use resource show all to create a resource allocation list and post it here in a code block. Put (three backticks) at the start and end of the output block. -->
```
PASTE diff HERE
```
```
PASTE resource show all HERE
```
Use `resource show all` to create a resource allocation list and post it here in a code block. Put ``` (three backticks) at the start and end of the output block.
### Setup / Versions
<!-- Specify your flight controller model (what type is it, where was it bought from, ...) -->
- Flight controller:
<!-- Specify other components attached to the flight controller (RX, VTX, brand / model for all of them, firmware version where applicable...) -->
- Other components:
<!-- Details about how all is wired -->
- How are the different components wired up:
**Setup / Versions**
- Flight controller [what type is it, where was it bought from];
- Other components [RX, VTX, brand / model for all of them, firmware version where applicable];
- how are the different components wired up.
**Additional context**
Add any other context about the problem here.
### Additional context
<!-- Add any other context about the problem here. -->

22
.github/workflows/issues.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Issues
on:
issues:
types: [opened, edited]
jobs:
auto_close_issues:
name: Check if issues follow the templates
runs-on: ubuntu-latest
steps:
- name: Checkout templates
uses: actions/checkout@v2.3.4
- name: Automatically close issues that don't follow the templates
uses: ergo720/auto-close-issues@v1.0.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: >
@${issue.user.login}: This issue is being automatically closed because it does not follow the template.\n\n
**When you open an issue or feature request you are presented with a template. Follow the guidelines**.\n\n
You can edit your message to fix this and the issue will be automatically reopened.
closed-issues-label: Not following template