Commit Graph

6 Commits

Author SHA1 Message Date
weidongde f7e5741f12 feat(health): 新增 diagnose 命令实现健康度诊断
- 新增 diagnose 命令,基于 API 数据进行项目健康度诊断
- 实现5维度评分算法:文档、许可证、社区、成熟度、CI/CD
- 根据诊断结果生成可操作的改进建议
- 支持多种输出格式:文本、JSON、Markdown
- 完整的中英文国际化支持(101个翻译键)
- 新增单元测试覆盖评分和建议生成逻辑
- 更新相关文档(README、SKILL.md)
2026-06-29 17:09:11 +08:00
wangyue789 a1d3a85ab8 fix(health): use effective list filters 2026-06-05 14:56:02 +08:00
Yingjie Shang 17e8c113f7 fix(health): address code review issues 3-6,8 2026-06-03 21:12:44 +08:00
Yingjie Shang 41b89976aa perf(health): parallel fetch with errgroup and global rate limiter
- Replace sequential state loops with 5 parallel goroutines (errgroup)
- Global rate limiter (1000 reqs/10min, burst 5) replaces per-page sleep
- sharedState with sync.Mutex for cross-goroutine dedup and counting
- Fix getOrCreateUser/getOrCreateTag race conditions (INSERT OR IGNORE)
- Remove sleep() and API aggregates verbose output
2026-06-03 20:59:50 +08:00
Yingjie Shang 0a578bbab0 feat(health): remove per-issue detail API, add tag tables and persistence
- Drop fetchIssueDetail — issue list response already contains all needed fields
- Add tags/issue_tags/pull_tags tables with indexes
- Persist PR and Issue tags during savePull/saveIssue
- Fix issue aggregate field names (total_count/opened_count/closed_count)
- Document tag tables and queries in queries.md
2026-06-03 20:59:50 +08:00
Yingjie Shang 0da45def2b feat(shortcut): rewrite gitlink-health as a Go shortcut
Migrate health analysis from Python scripts to a native Go shortcut
for better performance and single-binary distribution. Remove the
Python collector (fetcher.py) and move schema.sql into shortcuts/health/.
2026-06-03 20:59:50 +08:00