From de60c93c003bf13986c18953ef27cbbce90b12a7 Mon Sep 17 00:00:00 2001 From: fengchao Date: Thu, 24 Apr 2025 21:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0GitCode=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=B8=8A=E7=9A=84=E4=BB=93=E5=BA=93Issue=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitcode/ISSUE_TEMPLATE/bug-report.yml | 125 ++++++++++++++++++++ .gitcode/ISSUE_TEMPLATE/config.yml | 1 + .gitcode/ISSUE_TEMPLATE/feature-request.yml | 29 +++++ .gitcode/ISSUE_TEMPLATE/feature.yml | 29 +++++ .gitcode/ISSUE_TEMPLATE/internship.yml | 112 ++++++++++++++++++ .gitcode/ISSUE_TEMPLATE/question.yml | 37 ++++++ .gitcode/ISSUE_TEMPLATE/task.yml | 57 +++++++++ .gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md | 36 ++++++ 8 files changed, 426 insertions(+) create mode 100644 .gitcode/ISSUE_TEMPLATE/bug-report.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/config.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/feature-request.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/feature.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/internship.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/question.yml create mode 100644 .gitcode/ISSUE_TEMPLATE/task.yml create mode 100644 .gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md diff --git a/.gitcode/ISSUE_TEMPLATE/bug-report.yml b/.gitcode/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000000..60e7d153dd --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,125 @@ +name: 缺陷 +description: 当您发现了一个缺陷,需要向社区反馈时,请使用此模板。 +title: "[Bug]: " +labels: ["bug"] +type: "缺陷" +body: + - type: markdown + attributes: + value: | + # 请认真填写以下信息,否则可能由于无法定位,导致issue无法解决而被取消 + + - type: dropdown + id: test_type + attributes: + label: "测试类型" + multiple: true + options: + - SQL功能 + - 存储功能 + - 接口功能 + - 工具功能 + - 性能 + - 并发 + - 压力长稳 + - 故障注入 + - 安全 + - 资料 + - 编码规范 + validations: + required: true + + - type: input + attributes: + label: 测试版本 + placeholder: "x.x.x" + validations: + required: true + + - type: textarea + attributes: + label: 问题描述 + placeholder: "描述你遇到的问题" + validations: + required: false + + - type: textarea + attributes: + label: 操作系统和硬件信息 + description: + placeholder: "查询命令: cat /etc/system-release, uname -a" + validations: + required: true + + - type: input + attributes: + label: 测试环境 + placeholder: "单机/1主x备x级联备" + validations: + required: false + + - type: textarea + attributes: + label: 被测功能 + validations: + required: false + + - type: textarea + attributes: + label: 测试类型 + validations: + required: false + + - type: input + attributes: + label: 数据库版本 + placeholder: "查询命令: gaussdb -V" + validations: + required: false + + - type: textarea + attributes: + label: 预置条件 + validations: + required: false + + - type: textarea + attributes: + label: 操作步骤 + description: 请填写详细的操作步骤 + placeholder: "\n1. xxx\n2. xxx\n\n" + validations: + required: false + + - type: textarea + attributes: + label: 预期输出 + validations: + required: false + + - type: textarea + attributes: + label: 实际输出 + validations: + required: false + + - type: textarea + attributes: + label: 原因分析 + placeholder: "\n1. 这个问题的根因\n2. 问题推断过程\n3. 还有哪些原因可能造成类似现象\n4. 该问题是否有临时规避措施\n5. 问题解决方案\n6. 预计修复问题时间\n\n" + validations: + required: false + + - type: textarea + attributes: + label: 日志信息 + description: 请附上日志文件、截图、coredump信息 + placeholder: "日志文件、截图或coredump信息" + validations: + required: false + + - type: textarea + attributes: + label: 测试代码 + validations: + required: false \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/config.yml b/.gitcode/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000000..ec4bb386bc --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/feature-request.yml b/.gitcode/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000000..ca089112ca --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,29 @@ +name: 新需求 +description: 需要反馈或实现一个新需求时,使用此模板。 +title: "[新需求]: " +labels: ["enhancement"] +type: "需求" +body: + - type: markdown + attributes: + value: | + 感谢提出新需求。 + - type: textarea + attributes: + label: 需求背景 + validations: + required: false + + - type: textarea + attributes: + label: 需求描述 + description: 请详细说明需求需要做什么事情,达成什么样的效果 + placeholder: "需求需要做的事情,期望达成的效果..." + validations: + required: true + + - type: textarea + attributes: + label: 其他说明 + validations: + required: false \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/feature.yml b/.gitcode/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 0000000000..e85c7fc619 --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,29 @@ +name: 特性 +description: 需要反馈或实现一个新特性时,使用此模板。 +title: "[特性]: " +labels: ["enhancement"] +type: "特性" +body: + - type: markdown + attributes: + value: | + 感谢提出新特性。 + - type: textarea + attributes: + label: 需求背景 + validations: + required: false + + - type: textarea + attributes: + label: 特性描述 + description: 请详细说明特性需要做什么事情,达成什么样的效果 + placeholder: "需要做的事情,期望达成的效果..." + validations: + required: true + + - type: textarea + attributes: + label: 其他说明 + validations: + required: false \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/internship.yml b/.gitcode/ISSUE_TEMPLATE/internship.yml new file mode 100644 index 0000000000..cbadc0a18a --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/internship.yml @@ -0,0 +1,112 @@ +name: 开源实习 +description: 为开源实习生创建具体任务 +title: "[开源实习]: " +labels: ["internship"] +type: "开源实习" + +body: + - type: markdown + attributes: + value: "【声明】本 issue 为面向高校学生的[开源实习](https://www.openeuler.org/zh/internship/)项目的任务,非参加该项目的人员勿领" + + - type: input + attributes: + label: 任务分值 + placeholder: "xx分(如10分)" + validations: + required: true + + - type: textarea + attributes: + label: 背景描述 + placeholder: "描述要解决的问题背景" + validations: + required: true + + - type: textarea + attributes: + label: 需求描述 + placeholder: "描述任务需求" + validations: + required: true + + - type: markdown + attributes: + value: | + ## 环境要求 + + - type: input + attributes: + label: CPU架构 + placeholder: "x86_64/aarch64" + validations: + required: true + + - type: input + attributes: + label: 操作系统版本 + placeholder: "openEuler20.03-LTS-SP1" + validations: + required: true + + - type: input + attributes: + label: openGauss版本 + placeholder: "3.0" + validations: + required: true + + - type: textarea + attributes: + label: 产出标准 + description: "描述完成任务可合入社区需达到的要求和标准,以1、2、3点列出" + placeholder: | + 1. xxx + 2. xxx + 3. xxx + validations: + required: false + + - type: input + attributes: + label: PR提交地址 + description: "本仓库:https://gitcode.com/opengauss/opensource-intership" + placeholder: "请提供本仓库的 PR 地址" + validations: + required: false + + - type: input + attributes: + label: 期望完成时间 + placeholder: "2024-xx-xx" + validations: + required: false + + - type: textarea + attributes: + label: 开发指导 + placeholder: "提供解题方向、参考资料、相关项目链接等" + validations: + required: false + + - type: input + attributes: + label: 导师及邮箱 + placeholder: "@GitCode用户名 邮箱" + validations: + required: true + + - type: textarea + attributes: + label: 操作步骤 + description: 请填写详细的操作步骤 + placeholder: | + 1. xxx + 2. xxx + 3. xxx + validations: + required: false + + - type: markdown + attributes: + value: "【备注】领取本任务时,请参照[官网文档](https://opengauss.org/zh/download.html)提前安装好 openGauss,并将安装且运行成功的截图、您的简历与本任务的开发方案邮件发给导师。导师收到邮件后,会在本任务的issue评论内通过命令反馈评审结果。" \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/question.yml b/.gitcode/ISSUE_TEMPLATE/question.yml new file mode 100644 index 0000000000..5324cbf6cf --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/question.yml @@ -0,0 +1,37 @@ +name: "咨询" +description: "提出有关项目功能、使用或其他相关问题的咨询" +labels: ["question"] +title: "[咨询]: " +type: "咨询" +body: + - type: markdown + attributes: + value: | + 感谢您使用本项目!请按照以下提示填写您的问题,我们将尽快为您解答。 + + - type: input + id: title + attributes: + label: "问题简述" + description: "请用一句话描述您的问题。" + placeholder: "例如:如何在项目中使用某功能?" + validations: + required: true + + - type: textarea + id: details + attributes: + label: "详细描述" + description: "请详细描述您的问题或疑问,包括您遇到的情况和希望的帮助。" + placeholder: "例如:我尝试了 X,但遇到了 Y。希望能提供相关指导。" + validations: + required: false + + - type: textarea + id: related_attempts + attributes: + label: "您尝试过的解决方法" + description: "请列举您为解决该问题而尝试过的方法,以帮助我们更好地理解情况。" + placeholder: "例如:查看了文档、搜索了现有 Issue 等。" + validations: + required: false \ No newline at end of file diff --git a/.gitcode/ISSUE_TEMPLATE/task.yml b/.gitcode/ISSUE_TEMPLATE/task.yml new file mode 100644 index 0000000000..e689933260 --- /dev/null +++ b/.gitcode/ISSUE_TEMPLATE/task.yml @@ -0,0 +1,57 @@ +name: "任务" +description: "提交新任务或需求" +labels: ["enhancement", "task"] +title: "[任务]: " +type: "任务" +body: + - type: markdown + attributes: + value: | + 感谢您为项目贡献新任务!请按照以下提示提供详细信息,以便我们更好地理解并跟进。 + + - type: input + id: task_title + attributes: + label: "任务标题" + description: "请为任务提供一个简洁明确的标题。" + placeholder: "例如:优化数据库查询速度" + validations: + required: true + + - type: textarea + id: task_description + attributes: + label: "任务描述" + description: "请详细描述任务的内容、目标和预期成果。" + validations: + required: true + + - type: dropdown + id: priority + attributes: + label: "优先级" + description: "请选择任务的优先级。" + options: + - 高 + - 中 + - 低 + validations: + required: true + + - type: textarea + id: related_resources + attributes: + label: "相关资源或参考" + description: "请列出与任务相关的链接、文档或其他资源(如适用)。" + placeholder: "例如:[性能优化最佳实践](https://example.com)" + validations: + required: false + + - type: textarea + id: additional_notes + attributes: + label: "补充说明" + description: "请添加任何其他可能有助于理解任务的信息。" + placeholder: "例如:此任务需与 X 团队协调。" + validations: + required: false \ No newline at end of file diff --git a/.gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md new file mode 100644 index 0000000000..e295f3a2d0 --- /dev/null +++ b/.gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md @@ -0,0 +1,36 @@ +--- +title: "【PR模版】:" +labels: ["fix bug"] +assignees: '' +--- + +# Pull Request 模板 + +## 描述 + +请提供此 Pull Request 的高级别说明 + +## 类型 + +- [ ] Bug 修复 +- [ ] 新功能 +- [ ] 代码风格更新(格式化,局部变量) +- [ ] 重构(即不是新增功能,也不是修改bug的代码变动) +- [ ] 构建过程或辅助工具的变动 +- [ ] 文档内容更新 + +## 如何测试 + +描述测试这个变更的步骤,包括哪些文件需要被修改。 + +## Checklist + +- [ ] 我的代码遵循这个项目的代码风格 +- [ ] 我已经自己测试过我的代码 +- [ ] 我已经更新了相应的文档 +- [ ] 我已经根据需要更新了对应的变更日志 +- [ ] 我已经在标题中正确使用了类型标签(例如:`feat:`, `fix:`) + +## 其他信息 + +在这里可以添加任何与这个 Pull Request 相关的其他说明 \ No newline at end of file -- Gitee