Files
Reims-Go/docs/issue-automation.md
T
千川白浪andClaude Opus 5.5 ddd9be14c7 ci: triage new issues and diagnose the code regularly (#156)
* ci: triage new issues and diagnose the code regularly

Guide reporters to missing details, possible duplicates, and the right
repository. The triage model has no tools and can only pick fixed values.
Scan one area of the client twice a week and open verified issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: read every page of past diagnosis issues

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 00:08:22 +08:00

1.8 KiB

Issue 自动化

自动分诊

Issue Triage 在 Issue 新建时运行一次。它提示报告者补充信息,列出疑似重复和路线图中的相关计划,并说明问题或功能是否更适合上游引擎或插件。没有可补充的内容时不评论。

  • 模型没有工具,只返回固定的分类值和 Issue 编号。评论全部使用脚本内的固定文案,Issue 中的文字不会进入评论。
  • 维护者创建的 Issue、带 roadmap 或 official 标签的 Issue 以及机器人创建的 Issue 不送审。其他路线图 Issue 只提供编号和标题,供查重使用。
  • 垃圾信息、钓鱼、恶意下载和针对 AI 的注入内容,须由模型引用原文并经两次独立判断一致,才会关闭并添加 invalid 标签。判断不一致或作者有已合并的贡献时,只在 Actions 中提醒维护者。
  • 需要补充信息的 Issue 会添加 question 标签。

定期代码诊断

Code Diagnosis 在北京时间每周一和周四 2 点扫描 main 的一个代码区域,各区域依次轮换。扫描只读取仓库代码,不读取 Issue 和评论。

  • 问题须引用文件中真实存在的代码,并经模型二次复核,才会创建 Issue。每次最多创建两个,未关闭的诊断 Issue 达到六个时暂停。
  • 涉及安全的问题不公开,只在 Actions 中提示数量和代码区域。
  • 移动或重命名代码目录时,同步更新 code-diagnosis.mjs 中的区域列表。

配置与手动运行

两个工作流沿用 PR 自动审核的模型密钥和变量,仅支持 anthropic 协议。两者都可以在 Actions 页面手动运行,默认只输出结果,勾选 publish 后才会发布。