diff --git a/.github/ISSUE_TEMPLATE b/.github/ISSUE_TEMPLATE index b99b58a2..a1e5c291 100644 --- a/.github/ISSUE_TEMPLATE +++ b/.github/ISSUE_TEMPLATE @@ -2,19 +2,22 @@ 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? -If possible, provide a recipe for reproducing the error. -A complete runnable program is good. +4. How to reproduce the issue? -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? diff --git a/.github/workflows/issue_template.yml b/.github/workflows/issue_template.yml new file mode 100644 index 00000000..080dfbb1 --- /dev/null +++ b/.github/workflows/issue_template.yml @@ -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 \ No newline at end of file