fix(workflow): use status/category list filters in health and report fetchers #360
Loading…
Reference in New Issue
No description provided.
Delete Branch "heke1228/gitlink-cli:fix/workflow-health-list-filter"
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?
背景
workflow +health/+repo-report/+triage的抓取器用state=open过滤 PR/Issue 列表。但 GitLink 列表 API 对 PR 以status过滤、对 Issue 以category过滤,state参数被静默忽略——按 API 文档未传status即返回全部。于是抓取器把 open + merged + closed 全部取回,污染OpenPRs/OpenIssues计数并扭曲健康评分。仓库内pr.go、issue.go、health/api.go已使用正确参数名。另修
updateRecentActivity:RecentActivityDays == 0(今日活跃)被原判定当作“未设置”,允许更旧信号覆盖。改动
status(open=0),issues 抓取发category(opened)。|| input.RecentActivityDays == 0。验证
go test ./...通过;改回state=或恢复== 0子句会使新测试失败(变异验证)。