Skip to content

chore: update issue template #17655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

chore: update issue template #17655

wants to merge 6 commits into from

Conversation

ianzone
Copy link
Contributor

@ianzone ianzone commented May 6, 2025

这个 PR 做了什么? (简要描述所做更改)
更新了 issue template,修复了 config.yml 中的错误链接

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix #
  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)
  • 代码风格更新(Code style update)
  • 其他,请描述(Other, please describe):

这个 PR 涉及以下平台:

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)
  • 鸿蒙(harmony)

Summary by CodeRabbit

  • 文档
    • 优化了 Bug 报告和功能请求的模板,简化描述,增加多选平台和贡献意愿选项,提升填写体验和数据结构化。
    • 新增提案、投票及生态建设的讨论入口,社区支持链接指向 Taro 专属问答区,增强社区互动。
    • 优化了 Pull Request 模板,合并说明,简化类型选择,提升可读性和填写效率。

Copy link

coderabbitai bot commented May 6, 2025

Walkthrough

本次更新主要对 GitHub 的 issue 和 pull request 模板进行了优化,包括描述文本、标签、输入方式及字段的调整,新增了用户意向反馈选项,并完善了 issue 配置文件中的联系入口。这些更改提升了表单结构化和用户交互体验。

Changes

文件/分组 变更摘要
.github/ISSUE_TEMPLATE/bug_report.yml 优化描述文本、标签,平台字段改为多选,复现步骤格式调整,新增“贡献代码”选项
.github/ISSUE_TEMPLATE/feature_request.yml 优化描述、标签,调整和新增字段,增加“贡献代码”选项
.github/ISSUE_TEMPLATE/config.yml 新增“创建提案”“发起投票”入口,社区支持链接指向 Taro 专属 Q&A
.github/PULL_REQUEST_TEMPLATE.md 合并并简化说明,优化选项描述和格式,去除冗余,改善可读性

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant GitHub Issue Template

    User->>GitHub Issue Template: 打开 issue 模板
    GitHub Issue Template-->>User: 展示优化后的表单(多选平台、贡献代码等)
    User->>GitHub Issue Template: 填写并提交 issue
    GitHub Issue Template-->>User: 收集结构化信息并创建 issue
Loading

Possibly related PRs

  • chore: issue template #17477:该 PR 首次引入了 issue 模板,本次 PR 则是在其基础上进行字段和描述的优化与调整。

Suggested reviewers

  • tutuxxx

Poem

小兔挥笔写模板,
表单优化更清晰。
贡献意愿轻松选,
多平台一键齐。
社区入口更便捷,
协作高效步步提!
🐇✨

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1527d95 and 476295b.

📒 Files selected for processing (1)
  • .github/ISSUE_TEMPLATE/config.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/ISSUE_TEMPLATE/config.yml
✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Commit Unit Tests in branch issue
  • Post Copyable Unit Tests in Comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai bot requested a review from tutuxxx May 6, 2025 18:47
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
.github/ISSUE_TEMPLATE/bug_report.yml (1)

81-81: 文件末尾缺少空行
请在文件末尾添加换行符以符合 YAMLlint 要求。

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 81-81: no new line character at the end of file

(new-line-at-end-of-file)

.github/PULL_REQUEST_TEMPLATE.md (1)

21-31: 更新平台复选列表
平台列表已与 issue 模板保持一致,可考虑提取公共片段以减少重复维护。

.github/ISSUE_TEMPLATE/feature_request.yml (1)

32-32: 文件末尾缺少空行
请在文件末尾添加换行,以满足 YAMLlint 要求。

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 32-32: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fb517eb and 5aea943.

📒 Files selected for processing (4)
  • .github/ISSUE_TEMPLATE/bug_report.yml (3 hunks)
  • .github/ISSUE_TEMPLATE/config.yml (1 hunks)
  • .github/ISSUE_TEMPLATE/feature_request.yml (1 hunks)
  • .github/PULL_REQUEST_TEMPLATE.md (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/ISSUE_TEMPLATE/bug_report.yml

[error] 81-81: no new line character at the end of file

(new-line-at-end-of-file)

.github/ISSUE_TEMPLATE/feature_request.yml

[error] 32-32: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Build Rust Binding / stable - x86_64-pc-windows-msvc
🔇 Additional comments (19)
.github/ISSUE_TEMPLATE/config.yml (3)

3-5: 确认“创建提案”链接
已新增指向 RFC 讨论分类的链接,请校验该 URL 是否正确且可用。


6-8: 确认“发起投票”链接
已新增指向 polls 讨论分类的链接,请校验该 URL 是否正确且可用。


10-11: 更新“社区支持”链接
已将链接从通用社区讨论调整为 Q&A 分类,描述更精准,确认 URL 无误。

.github/ISSUE_TEMPLATE/bug_report.yml (5)

2-2: 简化问题描述
已将 description 更新为“报告新 Bug”,更简洁明确。


5-5: 更新标签“待分类”至“triage”
将 label 从 待分类 改为 triage,与其他模板保持一致。


8-23: 扩展“相关平台”多选项
将 platform 字段改为复选框,提供丰富的预设平台列表,有助于标准化数据。


64-66: 优化“复现步骤”多行占位符
调整 placeholder 的 YAML 格式为 >-,并加入有序列表示例,使填写体验更友好。


76-81: 新增“贡献代码”复选项
允许用户在报告 Bug 时表明是否愿意修复,增强社区协作。

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 81-81: no new line character at the end of file

(new-line-at-end-of-file)

.github/PULL_REQUEST_TEMPLATE.md (5)

2-3: 更新贡献者指南链接与操作说明
合并贡献者指南链接并补充 “将 "[ ]" 更新为 "[x]"” 提示,指导更明确。


5-5: 新增 PR 摘要标题提示
使用 **这个 PR 做了什么?** 小标题,引导撰写变更概述,推荐保留。


8-8: 简化 PR 类型选择
整合并清晰列出多种 PR 类型复选框,去除冗余内容,提升可读性。


10-17: 精炼 PR 类型列表
各类型选项齐全,中文与英文描述对齐,无需调整。


19-19: 新增平台影响小节
**这个 PR 涉及以下平台:** 指引清晰,有助于评估兼容性。

.github/ISSUE_TEMPLATE/feature_request.yml (6)

2-2: 简化功能请求描述
description 更新为“提出新特性”,更简洁易懂。


5-6: 更新标签为 triage/feat
将原 待分类feature 改为 triagefeat,与其他模板保持一致。


12-12: 完善功能描述提示
labeldescription 修改为更详细的“这个功能增加了什么特性?解决了什么问题?”。


16-19: 重命名 design 字段并更新提示
将 id 从 details 改为 design,label 更新为“功能设计”,更契合使用场景。


22-26: 新增实现细节字段
添加 details 文本区域,收集具体实现思路,完善模板。


27-32: 新增“贡献代码”复选选项
与 bug 报告模板对称,支持用户标记愿意实现特性,增强协作。

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 32-32: no new line character at the end of file

(new-line-at-end-of-file)

Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.37%. Comparing base (e5d3e02) to head (be6f63f).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             main   #17655    +/-   ##
========================================
  Coverage   59.37%   59.37%            
========================================
  Files         387      387            
  Lines       23417    23417            
  Branches     5150     5145     -5     
========================================
  Hits        13903    13903            
- Misses       8013     8148   +135     
+ Partials     1501     1366   -135     
Flag Coverage Δ
taro-cli 72.37% <ø> (ø)
taro-runtime 59.87% <ø> (ø)
taro-web 53.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 41 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ianzone
Copy link
Contributor Author

ianzone commented May 7, 2025

@tutuxxx 之前的 discussion 链接放错了,抽空合一下哈

This was referenced May 10, 2025
@ianzone
Copy link
Contributor Author

ianzone commented May 13, 2025

@tutuxxx 为了使issue更规范,请尽快合并一下哈

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.github/ISSUE_TEMPLATE/bug_report.yml (1)

87-87: 文件末尾缺少换行符
请在文件末尾添加一个空行以满足 YAMLlint 要求。

+
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 87-87: no new line character at the end of file

(new-line-at-end-of-file)

.github/ISSUE_TEMPLATE/feature_request.yml (1)

40-40: 文件末尾缺少换行符
请在文件末尾添加一个空行以满足 YAMLlint 要求。

+
🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 40-40: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a51bb34 and 1527d95.

📒 Files selected for processing (2)
  • .github/ISSUE_TEMPLATE/bug_report.yml (3 hunks)
  • .github/ISSUE_TEMPLATE/feature_request.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/ISSUE_TEMPLATE/feature_request.yml

[error] 40-40: no new line character at the end of file

(new-line-at-end-of-file)

.github/ISSUE_TEMPLATE/bug_report.yml

[error] 87-87: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (12)
.github/ISSUE_TEMPLATE/bug_report.yml (5)

2-2: 描述文本更新简洁明了
将 description 修改为“报告新 Bug”,更符合中文语境,能让用户快速理解该模板作用。


5-5: 标签 triage 替换恰当
将原来的“待分类”改为“triage”,与项目中统一的 label 规范保持一致。


8-13: 新增非重复确认复选框
添加“请先搜索是否存在类似提交”及“我确定这个提交不是重复的”选项,且已设为必填,有助于减少重复 issue。


16-31: 平台多选项更新完善
将单一输入字段替换为多选复选框,列举了所有主要平台,增强了 issue 上报时的平台信息收集。


82-87: 新增“贡献代码”复选框
加入“我愿意修复这个错误”选项,便于征集社区贡献者。

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 87-87: no new line character at the end of file

(new-line-at-end-of-file)

.github/ISSUE_TEMPLATE/feature_request.yml (7)

2-2: 描述文本更新简洁明了
“提出新特性”比原描述更精炼,符合模板风格。


5-6: 标签更新为 triagefeat
将“待分类”替换为“triage”,“feature”替换为“feat”,与 bug 模板保持一致。


8-15: 新增非重复确认复选框
已添加“请先搜索是否存在类似提交”复选框并强制填写,有助于避免重复请求。


20-20: 功能描述占位文本优化
“这个功能增加了什么特性?解决了什么问题?”更聚焦于 feature 的目的与价值。


24-27: “功能设计”字段完善
“id: design” 对应“功能设计”并设为必填,可让贡献者了解 API/CLI 等使用方式。


30-34: 新增“实现细节”字段
提供实现思路的文本框,利于社区评估方案可行性。


35-40: 新增贡献者意愿复选框
“我愿意实现这个功能”选项便于招募社区协作。

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 40-40: no new line character at the end of file

(new-line-at-end-of-file)

@ianzone
Copy link
Contributor Author

ianzone commented May 17, 2025

@yoyo837 可否帮忙合一下 🙏

@@ -1,17 +1,34 @@
name: 错误报告 🐞
description: >-
创建一个新的错误报告。对于一般性问题,请在 GitHub Discussion 中发布。
description: 报告新 Bug
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个位置我个人觉得留以前的吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants