github: provide an action to make sure all users raise the issues following the template

This commit is contained in:
Deng Ming 2024-04-08 17:12:15 +08:00 committed by Ming Deng
parent 90dc9e833e
commit 0f9372234c
2 changed files with 27 additions and 8 deletions

View File

@ -2,19 +2,22 @@
Please answer these questions before submitting your issue. Thanks! Please answer these questions before submitting your issue. Thanks!
1. What version of Go and beego are you using (`bee version`)? 1. What did you do?
> If possible, provide a recipe for reproducing the error.
> A complete runnable program is good.
> If this is ORM issue, please provide the DB schemas.
2. What operating system and processor architecture are you using (`go env`)? 2. What did you expect to see?
3. What did you see instead?
> please provide log or error information.
3. What did you do? 4. How to reproduce the issue?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
If this is ORM issue, please provide the DB schemas. > or you can provide a reproduce demo.
4. What did you expect to see? 5. What version of Go and beego are you using (`bee version`)?
6. What operating system and processor architecture are you using (`go env`)?
5. What did you see instead?

16
.github/workflows/issue_template.yml vendored Normal file
View File

@ -0,0 +1,16 @@
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:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
closed-issues-label: "🙁 Not following issue template" # optional property