发帖前必读
运行环境
| 项目 |
值 |
| 操作系统 |
与操作系统无关 |
| 使用环境 |
GitHub Web |
| 仓库 |
claude-code-best/claude-code |
| 复现日期 |
2026-07-22 |
复现步骤
- 打开仓库的 Issues 页面:https://github.com/claude-code-best/claude-code/issues
- 点击
New issue。
- 查看弹出的 Issue 模板选择器。
期望行为
模板选择器中应当显示:
用户可以选择相应模板创建 Issue。
实际行为
模板选择器只显示以下入口:
- Report a security vulnerability
- 讨论区
- 项目文档
没有显示 Bug 报告 和 功能建议,同时仓库设置了:
blank_issues_enabled: false
因此用户从仓库的正常 New issue 入口无法创建任何普通 Issue。
通过带 template 参数的直达链接仍然可以创建,例如:
https://github.com/claude-code-best/claude-code/issues/new?template=bug_report.md
原因分析
当前两个 Markdown 模板的 YAML frontmatter 使用了 description:
---
name: Bug 报告
description: 报告一个可复现的 bug
---
对于 .md Issue 模板,GitHub 要求使用 about 字段;description 用于 .yml Issue Form。由于模板头信息无效,GitHub 的模板选择器没有识别这些模板。
受影响文件:
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
建议修复
将两个文件中的 description 改为 about:
name: Bug 报告
-description: 报告一个可复现的 bug
+about: 报告一个可复现的 bug
name: 功能建议
-description: 提出新功能或改进建议
+about: 提出新功能或改进建议
GitHub 相关文档:
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates
补充信息
New issue 弹窗中目前仅显示安全报告、讨论区和项目文档。
发帖前必读
运行环境
claude-code-best/claude-code复现步骤
New issue。期望行为
模板选择器中应当显示:
Bug 报告功能建议用户可以选择相应模板创建 Issue。
实际行为
模板选择器只显示以下入口:
没有显示
Bug 报告和功能建议,同时仓库设置了:因此用户从仓库的正常
New issue入口无法创建任何普通 Issue。通过带
template参数的直达链接仍然可以创建,例如:https://github.com/claude-code-best/claude-code/issues/new?template=bug_report.md
原因分析
当前两个 Markdown 模板的 YAML frontmatter 使用了
description:对于
.mdIssue 模板,GitHub 要求使用about字段;description用于.ymlIssue Form。由于模板头信息无效,GitHub 的模板选择器没有识别这些模板。受影响文件:
.github/ISSUE_TEMPLATE/bug_report.md.github/ISSUE_TEMPLATE/feature_request.md建议修复
将两个文件中的
description改为about:GitHub 相关文档:
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates
补充信息
New issue弹窗中目前仅显示安全报告、讨论区和项目文档。