fix(health): use effective list filters #120
Loading…
Reference in New Issue
No description provided.
Delete Branch "wangyue111/gitlink-cli:fix/health-list-filters"
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?
背景
检查近期合入的 gitlink-health 后,发现 health +fetch 仍然使用旧的列表筛选方式:
线上验证发现这些参数会被服务端忽略或不能正确筛选:
这会导致 health +fetch 写入 SQLite 的 PR/Issue 状态混乱,影响后续健康度统计。
修复内容
PR 列表改用有效的 v1 接口和状态参数:
Issue 列表改用有效的 category 参数:
savePull 兼容 v1 PR list 返回结构:
测试
新增 health 单元测试覆盖:
已验证:
说明
这是一个功能正确性修复,不改变 health +fetch 的 CLI 参数,只修正底层调用的 OpenAPI 路径和参数映射。