From 36bf95ee1d52d10ca0c8688ae30b3a3edc9b972c Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Fri, 20 Oct 2023 10:57:12 +0800 Subject: [PATCH] chore: enable new issue category and add label --- .github/ISSUE_TEMPLATE/bug-report.yml | 3 ++- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/documentation.yml | 1 + .github/ISSUE_TEMPLATE/feature-request.yml | 7 ++++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 5584f49b10aa..4c4d964fcd63 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,10 +1,11 @@ name: 🐛 Bug Report description: Create a report to help us reproduce and fix the bug(创建报告以帮助我们重现和修复 bug) +labels: "type: bug" body: - type: markdown attributes: - value: > + value: | #### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/midwayjs/midway/issues?q=is%3Aissue+sort%3Acreated-desc+). #### 在提交 bug 之前,请通过搜索[现有和过去的问题](https://github.com/midwayjs/midway/issues?q=is%3Aissue+sort%3Acreated-desc+)来确保问题尚未解决。 - type: textarea diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 9a928bde3303..4d4f0e32deda 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: Questions url: https://github.com/midwayjs/midway/discussions diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml index c6d629a39844..20664beeb124 100644 --- a/.github/ISSUE_TEMPLATE/documentation.yml +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -1,5 +1,6 @@ name: 📚 Documentation description: Report an issue and help us improve the documentation(报告问题并帮助我们改进文档) +labels: "type: docs" body: - type: textarea diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index f4f9b9bbc9a0..7798b958687e 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,11 +1,12 @@ name: 🚀 Feature request description: Submit a proposal/request for a new Midway feature(提交 Midway 新功能的建议/请求) +labels: "type: enhancement" body: - type: textarea attributes: label: 🚀 The feature, motivation(功能、动机) - description: > + description: | A clear and concise description of the feature proposal. Please outline the motivation for the proposal. Is your feature request related to a specific problem? e.g., *"I'm working on X and would like Y to be possible"*. If this is related to another GitHub issue, please link here too. 功能建议的清晰简洁的描述。请概述建议的动机。您的功能请求是否与特定问题有关?例如,*“我正在处理 X,并希望 Y 可能”*。如果这与另一个 GitHub 问题有关,请在此处链接。 @@ -14,14 +15,14 @@ body: - type: textarea attributes: label: Alternatives(替代方案) - description: > + description: | A description of any alternative solutions or features you've considered, if any. 如果有的话,请描述您考虑过的任何替代解决方案或功能。 - type: textarea attributes: label: Additional context(其他上下文) - description: > + description: | Add any other context or screenshots about the feature request. 添加有关功能请求的任何其他上下文或屏幕截图。