feat(user): add statistics shortcuts #238
Loading…
Reference in New Issue
No description provided.
Delete Branch "wangyue111/gitlink-cli:feat/user-statistics-shortcuts"
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 OpenAPI 提供用户活跃度、贡献热力图、开发能力、角色分布和专业分类等统计接口,但当前 CLI 的
user组只包含+me和+info,无法直接支持开源贡献画像、科研仓库成员分析或 Agent 自动报告。新增功能
扩展
gitlink-cli user命令组:user +activity:近期用户活跃度统计user +headmap:贡献热力图数据,支持--yearuser +develop:开发能力统计user +role:项目角色分布统计user +major:专业/项目分类统计通用参数:
--login:目标用户,不传时优先使用--owner,否则解析当前用户/users/me--start-time/--end-time:适用于 develop/role/major 的时间范围安全与参数设计
--year校验为四位年份--start-time/--end-time校验为非负整数,并校验 start <= end--format json,方便 Agent/脚本消费OpenAPI 对齐
GET /users/{owner}/statistics/activityGET /users/{owner}/headmapsGET /users/{owner}/statistics/developGET /users/{owner}/statistics/roleGET /users/{owner}/statistics/major测试
文档
更新 README / README.zh-CN /
skills/gitlink-user/SKILL.md,新增doc/changes/user-statistics-shortcuts.md。84bb6dfca7to74d36f3a2274d36f3a22toa83b787a8ca83b787a8cto58982c2bb0