精确关联 PR 的 CI 证据并完善上下文解析 #429
Loading…
Reference in New Issue
No description provided.
Delete Branch "Mengz/gitlink-cli:mengz/review-context-evidence-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
本 PR 替代已关闭的 #426,保留 PR 证据包能力,并修复 CI 证据可能误关联的问题。
改动重点:
ci_summary,优先按 PR head commit SHA 精确匹配构建,SHA 无法匹配时才回退到分支。passed、failed、pending、unknown只统计已匹配构建,并提供matched、unmatched和match_mode,避免把其他分支的失败构建误判为当前 PR 结果。ci_builds作为可追溯附录,CI 缺失或未关联时明确提示证据不足。issue_tags/tags列表包装未被通用解析器识别的问题,避免标签上下文静默为空。验证结果:
go test ./shortcuts/workflow -run TestFetchReviewContext|TestSummarizeReviewCI|TestRenderReviewContextFormats -count=1通过go build ./...通过git diff --check通过这是对已关闭 #426 的质量增强版,仍保持只读接口、旧参数和默认行为兼容。
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.