diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 65cea483fc..0000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -name: Report bug -about: Create a report to help us improve -title: 'bug: ' -labels: 'bug' -assignees: '' ---- - - - -### Versions - -- dumi: -- node: -- npm: -- OS: -- Browser: - -### Steps to reproduce - -### What is Expected? - -### What is actually happening? diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000000..a2acba83fc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,94 @@ +name: Bug Report +description: File a bug report / 报告错误 +title: 'bug: ' +labels: ['unconfirmed'] +body: + - type: markdown + attributes: + value: | + The issue list is reserved exclusively for bug reports and feature requests. That means we do not accept usage questions, for usage questions, please use the following resources: + + - Read the [guide documentation](https://d.umijs.org/guide) or search documentation via issue keywords + - Make sure you have search your question in [FAQ](https://d.umijs.org/guide/faq) and [release notes](https://github.com/umijs/dumi/releases) + - Look for ask questions in [Discussions](https://github.com/umijs/dumi/discussions) + + Also try to search for your issue - it may have already been answered or even fixed in the development branch. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue using the form below instead of commenting on the old issue. + + --- + dumi 的 issue 列表只接受 Bug 报告或是新功能请求 (Feature Request)。这意味着我们不接受用法问题(How to 类问题),对于使用中遇到的问题,请使用以下资源: + + - 仔细阅读 [指南文档](https://d.umijs.org/guide) 或使用官网搜索问题关键字 + - 提问前确保你在 [FAQ](https://d.umijs.org/guide/faq) 和 [发布日志](https://github.com/umijs/dumi/releases) 中搜索过 + - 在 [Discussions](https://github.com/umijs/dumi/discussions) 搜索和提问 + + 最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。 + + - type: input + id: version + attributes: + label: Version + description: dumi version you now use + placeholder: ex. 2.2.12 + validations: + required: true + + - type: input + id: os + attributes: + label: OS Version + description: Operation system version you now use + placeholder: ex. macOS 14.0.0 + validations: + required: true + + - type: input + id: node + attributes: + label: Node.js Version + description: Node.js version you now use + placeholder: ex. 18.0.0 + validations: + required: true + + - type: input + id: browser + attributes: + label: Browser Version + description: Browser version you now use + placeholder: ex. Firefox 118.0.0 + validations: + required: true + + - type: input + id: reproduction + attributes: + label: Link to minimal reproduction + description: The minimal repository link to reproduce this issue + validations: + required: true + + - type: textarea + id: steps + attributes: + label: Steps to reproduce + validations: + required: true + + - type: textarea + id: expected + attributes: + label: What is expected? + validations: + required: true + + - type: textarea + id: happened + attributes: + label: What is actually happening? + validations: + required: true + + - type: textarea + id: additional + attributes: + label: Any additional comments? (optional) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000000..f3b81c7748 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Github Discussions + url: https://github.com/umijs/father/discussions + about: Ask or answer usage questions / 交流使用问题 diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index dbf94a3b4f..0000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: 'feat: ' -labels: enhancement ---- - - - -### Description - -### Solution - - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000000..f7db0bf660 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,36 @@ +name: Feature Request +description: Request a new feature / 提出新功能请求 +title: 'feat: ' +labels: ['enhancement'] +body: + - type: markdown + attributes: + value: | + The issue list is reserved exclusively for bug reports and feature requests. That means we do not accept usage questions, for usage questions, please use the following resources: + + - Read the [guide documentation](https://d.umijs.org/guide) or search documentation via issue keywords + - Make sure you have search your question in [FAQ](https://d.umijs.org/guide/faq) and [release notes](https://github.com/umijs/dumi/releases) + - Look for ask questions in [Discussions](https://github.com/umijs/dumi/discussions) + + Also try to search for your issue - it may have already been answered or even fixed in the development branch. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue using the form below instead of commenting on the old issue. + + --- + dumi 的 issue 列表只接受 Bug 报告或是新功能请求 (Feature Request)。这意味着我们不接受用法问题(How to 类问题),对于使用中遇到的问题,请使用以下资源: + + - 仔细阅读 [指南文档](https://d.umijs.org/guide) 或使用官网搜索问题关键字 + - 提问前确保你在 [FAQ](https://d.umijs.org/guide/faq) 和 [发布日志](https://github.com/umijs/dumi/releases) 中搜索过 + - 在 [Discussions](https://github.com/umijs/dumi/discussions) 搜索和提问 + + 最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。 + + - type: textarea + id: description + attributes: + label: What problem does this feature solve? + validations: + required: true + + - type: textarea + id: solution + attributes: + label: Possible Solution (optional) diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index b71646079b..0000000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: Question -about: Need help during use dumi -labels: question ---- - -### Question - -### Sample Code