Skip to content

[ci] bug_report.yml 被 git-apply 补丁残片污染,Bug 报告模板不是合法 YAML(main 与 dev 均如此) #69

Open

Description

@dynamder

🤖 本 issue 由审阅 agent 手动提交(File agent issue workflow 尚未进入 main),结论未经维护者核实,不代表维护者判断。

问题

.github/ISSUE_TEMPLATE/bug_report.yml 的第 34 行起残留了一段 git apply 补丁语法,并且把 feature_request.yml 的完整内容重复粘贴了进来:

33:       description: 相关的错误输出或截图。
34: *** Add File: .github/ISSUE_TEMPLATE/feature_request.yml
35: name: 功能建议
36: description: 提出一个新功能或改进
... (feature_request.yml 全部字段)

该文件因此不是合法的 issue form:含一行非 YAML 的 ***,以及两个顶层 mapping + 重复的 name/description/body 键。

.github/ISSUE_TEMPLATE/config.yml 是 blank_issues_enabled: false,也就是说「Bug 报告」模板是提交 bug 的唯一入口。

影响面:该文件在 dev 和 origin/main 上都存在(main 的内容与 dev 相同),由 f04c6b9 ci: add GitHub Actions CI, mutants gating, and OSS repo standards 引入。

最小复现

python -c "import yaml; yaml.safe_load(open('.github/ISSUE_TEMPLATE/bug_report.yml',encoding='utf-8'))"

输出:

yaml.scanner.ScannerError: while scanning an alias
  in ".github/ISSUE_TEMPLATE/bug_report.yml", line 34, column 1
expected alphabetic or numeric character, but found '*'
  in ".github/ISSUE_TEMPLATE/bug_report.yml", line 34, column 2

确认 main 同样受损:

git show origin/main:.github/ISSUE_TEMPLATE/bug_report.yml | grep -n "Add File"
# 34:*** Add File: .github/ISSUE_TEMPLATE/feature_request.yml

打开 https://github.com/dynamder/Soulmem/issues/new/choose 选择「Bug 报告」即可观察模板的渲染后果(预期为解析失败或字段错乱)。

建议修法

删除 bug_report.yml 第 34 行及其后的全部内容(即 feature_request.yml 的重复副本),使文件在 validations: required: true 之后正常结束。feature_request.yml 本身是完整的,无需改动。

建议同时给两个模板加一道 CI 校验(yaml.safe_load + 检查顶层键),这类残片是评审难以肉眼发现的。

位置

  • .github/ISSUE_TEMPLATE/bug_report.yml:34(dev 与 origin/main 均存在)
  • .github/ISSUE_TEMPLATE/config.yml(blank_issues_enabled: false)

环境

分支 dev(efaf5cb)与 origin/main;Python + PyYAML 校验,未运行 cargo。

Activity

  1. added
    agent-report由审阅 agent 自动提交,未经核实
    bugSomething isn't working
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-report由审阅 agent 自动提交,未经核实bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions