Commit Graph

87 Commits

Author SHA1 Message Date
caoweiqiong 5bec1e5bf1 Merge pull request 'test: PR workflow demo for skill documentation' (#1) from test/pr-workflow-demo into master
Release / release (push) Failing after 17m30s Details
2026-06-13 10:17:06 +08:00
Martin 60cb293913 test: PR workflow demo for skill documentation 2026-06-13 10:16:39 +08:00
yetja 32783c2086 repo skill: REFERENCE.md 拆为 references/ 目录(与 issue 格式一致) 2026-06-12 19:15:06 +08:00
yetja fb5ebc4d2c 完善 repo/org/ci/workflow 四个 AI Agent Skill(SKILL.md + REFERENCE.md + examples) 2026-06-12 19:09:23 +08:00
chroe 90e51dbadf 三个skill 2026-06-11 17:06:49 +08:00
chroe 3052e0bfa1 fix(skills): gitlink-health 评分算法修复 + 真实数据更新
REFERENCE.md 修复:
- journals API fallback 策略(不可用时按 comment_journals_count 估分)
- 贡献集中度明确排除上游贡献者,仅算本团队成员
- 社区关注度补充评分标准(≥20优秀 / 5-19良好 / <5需改进)

SKILL.md 补充:
- 明确 AI 必须先读 REFERENCE.md 再算分
- PR 维度 N/A 时权重重分配规则
- 贡献集中度计算说明

examples 更新:
- health-report.md: 用 2026-06-08 最新数据,含完整评分计算过程
- weekly-report.md: 反映本周关闭全部 Issue、清理里程碑/分支
2026-06-08 12:45:17 +08:00
chroe 603ab89d31 feat(skills): 新增 3 个 AI Agent Skill — health/changelog/triage
子任务二:编写和丰富 GitLink Skills

新增 Skill:
- gitlink-health: 项目健康度报告(Issue/PR/贡献者/活跃度四维评分)
- gitlink-changelog: Release Notes 自动生成(commit 分类 + 结构化输出)
- gitlink-triage: Issue 智能分拣 + 新人引导(自动分类/打标签/分配责任人)

每个 Skill 包含:
- SKILL.md(操作指南 + 工作流)
- REFERENCE.md(技术参考 + 字段映射)
- examples/(真实数据示例,基于 chroe/gitlink-cli 采集)
- VERIFICATION.md(Claude Code 验证通过)

同步更新:
- skills/README.md 注册新 Skill
- PROJECT_STATUS.md 更新当前阶段为子任务二
2026-06-08 11:02:06 +08:00
chroe 8391c3f3eb fix(showcase): 移除 rebase 残留的 commit message 导致 JS 语法错误白屏 2026-06-04 14:58:54 +08:00
chroe 045c3b3c5f refactor(showcase): 成员管理卡片优化
- 组织ID查找改为 org +info 输入名字返回ID(不再列出全站805个组织)
- 新增仓库选择器(默认 chroe/gitlink-cli),成员操作可选目标仓库
- 移除重复的 org +list(与 member +list 重叠)
- 修复跨模块命令查找逻辑(用 uid 精确匹配)
2026-06-04 11:51:24 +08:00
yetja 9368c89b4d 删除不可用的批量操作(org batch-invite),新增批量操作:issue batch-comment(批量评论)、repo batch-create/batch-fork/batch-delete(批量仓库管理)、member batch-add(批量添加成员)。展示页新增 table 格式支持(formatter 增加 toGeneric 转换),新增批量仓库管理模块,更新批量操作计数。 2026-06-04 11:33:51 +08:00
chroe 21859ae6c1 refactor(showcase): 批量组织邀请合并到成员管理卡片
- 将独立的「批量组织邀请」卡片并入「成员管理」
- 新增「查看组织列表/ID」和「查看组织成员」入口
- 用分隔线区分项目成员和组织成员操作
- 修复跨模块命令 uid 冲突问题
2026-06-04 11:23:55 +08:00
chroe d1965eb098 fix(org): batch-invite 用户名自动解析为数字ID,修正 Showcase 默认值
- batch.go: user_id 字段从传字符串改为传 int64 数字 ID
- 新增 resolveUserIDs() 自动通过 /users/list 搜索解析用户名
- 支持混合输入:用户名自动查 ID,纯数字直接用,找不到的报错
- showcase: 默认组织 ID 从 1 改为 151783,示例用户改为 chroe
2026-06-04 11:01:41 +08:00
chroe ce7bb8ad19 chore: batch-delete默认改用fork后的仓库路径 2026-06-04 10:18:01 +08:00
chroe 831bd74be6 chore: 更新仓库管理默认示例为真实仓库 2026-06-04 10:00:55 +08:00
chroe f6467c5e84 chore: 恢复repo批量管理卡片 2026-06-04 09:53:32 +08:00
chroe 452c87dca7 fix: 移除batch-milestone(v1 PATCH实际不生效) 2026-06-04 09:44:58 +08:00
chroe 7f0652fd79 fix: 移除batch-label(GitLink API不支持issue标签关联) 2026-06-04 09:33:04 +08:00
chroe 73b5a557bc fix: 移除assign/batch-assign(GitLink API不支持) + 添加issue list命令 2026-06-04 09:25:22 +08:00
chroe cb8dfd5537 fix: assign传递数字ID + 保留status_id防止状态被重置 2026-06-04 09:08:53 +08:00
chroe 49c4b2931f Merge branch 'master' of https://gitlink.org.cn/chroe/gitlink-cli 2026-06-04 09:00:24 +08:00
chroe 623e065efa feat: 添加reopen/batch-reopen命令 + 修复assign使用PATCH代替PUT 2026-06-04 09:00:23 +08:00
chroe b1bd9759ce delete test file
Release / release (push) Failing after 56m48s Details
2026-06-03 23:06:17 +08:00
chroe c229513584 add test file 2026-06-03 23:04:03 +08:00
chroe 1004bddc8d fix: watch/star 模块 resolveProjectID 兼容 project_id 字段 2026-06-03 22:57:04 +08:00
chroe ad30d3b233 Merge branch 'master' of https://gitlink.org.cn/chroe/gitlink-cli 2026-06-03 22:45:51 +08:00
chroe 3558a1626c feat: 成员管理卡片添加按用户名搜索ID功能 2026-06-03 22:45:39 +08:00
chroe 72f1a7d6f5 delete test file 2026-06-03 22:38:48 +08:00
chroe 9ca2ab9530 add test file 2026-06-03 22:38:11 +08:00
chroe ac78457f9e fix: 移除index.html多余的花括号导致JS语法错误 2026-06-03 22:37:19 +08:00
chroe cf9f56feb3 Merge branch 'master' of https://gitlink.org.cn/chroe/gitlink-cli 2026-06-03 21:19:38 +08:00
chroe c1155c2262 perf: 移除流水线docker build --no-cache + 更新项目状态 2026-06-03 21:18:23 +08:00
Martin 4e4e3fb7c9 fix: Windows credential path follows system convention, remove duplicate install.js
Release / release (push) Failing after 1h9m56s Details
- ConfigDir() uses %AppData%\gitlink-cli on Windows instead of ~/.config/
- credentialPath() reuses config.ConfigDir() for path consistency
- credential path now respects GITLINK_CONFIG_DIR env override
- Remove stale scripts/install.js (npm/scripts/install.js is canonical)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 20:58:35 +08:00
chroe f627c3d813 merge: 解决 showcase/index.html 合并冲突,保留独立模块卡片+布尔参数修复+null处理优化 2026-06-03 20:24:47 +08:00
yetja bfd8cb0ba5 修复展示页两个bug:错误提示显示null、pflag bool参数解析错误 2026-06-03 20:20:47 +08:00
chroe 1a5dbe9e8e fix: showcase布尔参数用下拉框、移除重复owner/repo参数、改善null输出显示、member模块增加ID查找提示 2026-06-03 20:16:44 +08:00
yetja 37264ea7ec 合并批量操作为一个大类,修复错误提示显示null的bug 2026-06-03 20:01:01 +08:00
yetja fca5e9b821 新增展示页信息 2026-06-03 19:46:16 +08:00
Martin 7cd995dffa feat: add FreeBSD (amd64/arm64) to build and distribution pipeline
- Add freebsd/amd64 and freebsd/arm64 to build-npm.sh PLATFORMS
- Add FreeBSD targets to CI release workflow
- Fix CI Go version mismatch (1.22 -> 1.26 to match go.mod)
- Add freebsd platform mapping in npm postinstall script

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 19:36:58 +08:00
chroe d072d54995 Merge branch 'master' of https://gitlink.org.cn/chroe/gitlink-cli 2026-06-03 16:54:16 +08:00
chroe ad215e292d feat: wiki模块(5命令+sidebar自动清理)、流水线迁移新服务器、showcase参数修复、client.DoRaw
- 新增 wiki 模块:list/view/create/update/delete(含 sidebar 死链接自动清理)
- 新增 client.DoRaw() 方法(不带.json后缀,支持 gateway API)
- 修复 showcase 参数截断问题(支持引号包裹多词参数)
- 流水线迁移至新服务器 118.31.4.168
- Dockerfile 添加 GOPROXY=https://goproxy.cn,direct
- 更新 PROJECT_STATUS.md 项目文档
2026-06-03 09:05:53 +08:00
yetja d6c1a92fe3 增加批量管理仓库、批量邀请成员两个批量操作,优化现有命令的错误提示 2026-06-02 15:39:49 +08:00
Martin 999e721bd8 feat: add file, member, watch, star shortcut modules (15 commands)
- file: +list, +tree, +get, +create, +delete (5 commands, 9 tests)
- member: +list, +add, +remove, +update (4 commands, 6 tests)
- watch: +watch, +unwatch, +watchers (3 commands, 3 tests)
- star: +star, +unstar, +stars (3 commands, 3 tests)

Auto-resolve project-id for watch/star. v1 API paths preferred.
All 21 new tests passing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 08:54:18 +08:00
chroe a82717bbf3 refactor: .devops/构建部署Showcase.yml 2026-05-28 16:14:04 +08:00
chroe d63ea089ba feat: .devops/构建部署Showcase.yml 2026-05-28 16:08:44 +08:00
chroe 74f75a55ca feat(showcase): add interactive dashboard with Dockerfile and CI/CD pipeline
Interactive web dashboard that demonstrates new CLI commands with real
API calls. Includes:
- Go web server with embedded HTML (showcase/main.go)
- Dashboard UI with 4 modules, Chinese descriptions, live execution
- Dockerfile for multi-stage build
- Pipeline config for automated deployment on push

Access at http://121.41.210.165:9090 after deployment
2026-05-28 16:01:01 +08:00
yetja e29a02a3d0 新增24个测试用例:issue批量操作/CRUD、org/user/pr全命令、各模块view命令。覆盖率达到74.1% 2026-05-28 15:35:17 +08:00
chroe 2f943d9a53 docs(showcase): add feature showcase page and deploy script
Dark-themed showcase page displaying:
- Core stats (40+ to 70+ commands, 12 shortcut groups, 36+ tests)
- Team member assignments and architecture diagram
- Live command demo outputs and test results
- Deploy script for Nginx container on ECS
2026-05-28 14:42:34 +08:00
chroe 6042a7ea93 feat(commit): add commit shortcut module with list/view/diff/blame commands
Add 4 new commands for commit operations:
- commit list: list commits with sha/page/limit filters
- commit view: view files changed in a commit
- commit diff: show diff for a commit
- commit blame: show line-by-line file blame

Includes 5 unit tests covering all commands.
2026-05-28 14:42:34 +08:00
yetja 60b6ea6f6c 解决issue3:优化 table 输出格式及 batch-close
同时新增batch-close: 新增 Duration 字段记录批量操作耗时
2026-05-26 15:14:57 +08:00
yetja 1276744ee2 解决 issue #2: 新增 issue batch-assign、batch-label、batch-milestone 三个批量操作命令 2026-05-25 11:18:57 +08:00