From e7168e5289bdfce773c81811594b04ef00f4e13c Mon Sep 17 00:00:00 2001 From: wanghe Date: Thu, 21 Mar 2024 12:40:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0issues=20=E6=A8=A1?= =?UTF-8?q?=E7=89=88=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug.yml | 61 ++++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 +++ .github/ISSUE_TEMPLATE/feature.yml | 36 ++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 9 +++++ 4 files changed, 111 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 000000000..65f267f64 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,61 @@ +name: BUG 提交 +description: 提交产品缺陷帮助我们更好的改进 +title: "[BUG]" +labels: "类型: 缺陷" +assignees: baixin513 +body: + - type: markdown + id: contacts_title + attributes: + value: "## 联系方式" + - type: input + id: contacts + validations: + required: false + attributes: + label: "联系方式" + description: "可以快速联系到您的方式:交流群号及昵称、邮箱等" + - type: markdown + id: environment + attributes: + value: "## 环境信息" + - type: input + id: version + validations: + required: true + attributes: + label: "MaxKB 版本" + description: "登录 MaxKB Web 控制台,在右上角关于页面查看当前版本。" + - type: markdown + id: details + attributes: + value: "## 详细信息" + - type: textarea + id: what-happened + attributes: + label: "问题描述" + description: "简要描述您碰到的问题" + validations: + required: true + - type: textarea + id: how-happened + attributes: + label: "重现步骤" + description: "如果操作可以重现该问题" + validations: + required: true + - type: textarea + id: expect + attributes: + label: "期待的正确结果" + - type: textarea + id: logs + attributes: + label: "相关日志输出" + description: "请复制并粘贴任何相关的日志输出。 这将自动格式化为代码,因此无需反引号。" + render: shell + - type: textarea + id: additional-information + attributes: + label: "附加信息" + description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..cd5a52fa6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: 对 MaxKB 项目有其他问题 + url: https://bbs.fit2cloud.com/c/mk/11 + about: 如果你对 MaxKB 有其他想要提问的,我们欢迎到我们的官方社区进行提问。 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 000000000..3c015c4e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,36 @@ +name: 需求建议 +description: 提出针对本项目的想法和建议 +title: "[FEATURE]" +labels: enhancement +assignees: baixin513 +body: + - type: markdown + id: environment + attributes: + value: "## 环境信息" + - type: input + id: version + validations: + required: true + attributes: + label: "MaxKB 版本" + description: "登录 MaxKB Web 控制台,在右上角关于页面查看当前版本。" + - type: markdown + id: details + attributes: + value: "## 详细信息" + - type: textarea + id: description + attributes: + label: "请描述您的需求或者改进建议" + validations: + required: true + - type: textarea + id: solution + attributes: + label: "请描述你建议的实现方案" + - type: textarea + id: additional-information + attributes: + label: "附加信息" + description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..1106f42ea --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,9 @@ +#### What this PR does / why we need it? + +#### Summary of your change + +#### Please indicate you've done the following: + +- [ ] Made sure tests are passing and test coverage is added if needed. +- [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). +- [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed. \ No newline at end of file