Commit Graph

152 Commits

Author SHA1 Message Date
zhangqing 82ff856e46 docs(workflows): 移除 zhangqing 任务三脚本产物,改走编排 Skill 路线
按任务三"全部是 Markdown 文档(编排 Skill),不写 Go 代码、不写 shell 脚本"的核心原则:
- 删除 reproduce.sh 及 payload-v0.2.0-beta.2.json
- 同步修订 README.md 与 agent-dialogue-triggers.md 中对脚本的引用
远端 GitLink 已发布的 Release/Issue/Label/评论不受影响(脚本写入早在 2026-06-29 落地)。
下一步用编排 Skill(SKILL.md)串联任务二子 Skill 实现 ①⑤⑦ 工作流。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-02 19:17:38 +08:00
ZxR e075c82f52 chore: 清理测试注释和乱码 2026-07-02 19:01:06 +08:00
ZxR123-Z 5900c9f7ec Merge pull request 'test: 代码质量看门人 - README末尾添加测试注释' (#6) from test/code-quality-gate-0702 into master 2026-07-02 16:10:32 +08:00
ZxR 04f84774e6 test: 代码质量看门人 - 在README末尾添加测试注释 2026-07-02 16:08:32 +08:00
ZxR123-Z 1bb7051fa4 Merge pull request #5: chore: add code quality gatekeeper test comment to README
Code quality gatekeeper: Grade A - documentation-only change, safe to merge.
2026-07-02 15:49:30 +08:00
ZxR f0e1d6eb42 chore: 添加代码质量看门人测试注释到 README 末尾 2026-07-02 15:39:18 +08:00
ZxR123-Z ff49f47ae1 Merge pull request 'test: 自动化验证-代码质量看门人' (#4) from ZxR123-Z/gitlink-cli:test/code-quality-gate into master 2026-07-01 11:40:25 +08:00
ZxR a211b6ffb8 test: 添加自动化验证注释 2026-07-01 11:41:00 +08:00
zhangqing 65f9ad643c docs(workflows): 补提 beta.2 发版 payload 作为复现参考
展示 release +create 无 --body-file 时,用 api POST --body-file 的实际 payload 长什么样。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-29 18:02:17 +08:00
ZxR123-Z ca62d05760 Merge pull request 'test: ZxR 代码质量看门人自动化演示 (06-29)' (#3) from zxr-qa-gate-0629-1725 into master 2026-06-29 17:55:11 +08:00
ZxR 0552bf2c7f docs: add QA gatekeeper demo marker (zxr-qa-gate-0629-1725)
用于验证 GitLink 智能运营平台——代码质量看门人工作流
2026-06-29 17:25:47 +08:00
zhangqing 19ce89394f docs(workflows): zhangqing 任务三报告补充 Skill 蓝图对照 + Agent 对话触发语
按 PDF 正确做法补强交付:
- 01/05/07 三份报告各加「Skill 蓝图对照」段,逐动作引用 SKILL.md 行号
- README 加 Skill 作为设计蓝图的总览表
- 新增 agent-dialogue-triggers.md:给评委的 Agent 对话触发语(Skill 驱动 Agent 的演示入口)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-29 17:10:14 +08:00
zhangqing ce22a736e7 docs(workflows): 新增 zhangqing 任务三 ①⑤⑦ 工作流交付
- ① 社区运营自动化:含 v0.2.0-beta.1 发版执行报告
- ⑤ 贡献者成长体系:排行榜 + 三级徽章授予方案
- ⑦ 新人全流程保姆:onboarding 5 步执行报告
- 含可复现脚本 reproduce.sh 和避坑指引
2026-06-29 12:00:58 +08:00
ZxR123-Z 439fb2ae26 Merge pull request 'test: ZxR 代码质量看门人演示PR' (#2) from ZxR-test into master 2026-06-27 09:53:28 +08:00
ZxR aad7b9bb29 test: ZxR 代码质量看门人演示PR 2026-06-27 09:26:28 +08:00
ZxR 054da7cf0d Revert "Merge pull request 'test: 代码质量看门人演示 PR' (#1) from test/code-review-demo into master"
This reverts commit d435d97c8e, reversing
changes made to aa7f645158.
2026-06-27 09:19:37 +08:00
ZxR123-Z d435d97c8e Merge pull request 'test: 代码质量看门人演示 PR' (#1) from test/code-review-demo into master 2026-06-27 09:16:32 +08:00
ZxR 0d5cae38ec test: 添加测试章节(代码质量看门人演示PR) 2026-06-27 09:04:41 +08:00
15972095207 aa7f645158 test(skills): issue-triage 补充真实验证截图 + 修正 PATCH 说明
- SKILL.md:澄清 PATCH 404 真实原因是 Git Bash MSYS2 路径转换(非 .json),补充 MSYS_NO_PATHCONV=1 方案;修正 assigners 空时 owner 兜底无效
- verification.md:2.4 改为实证记录(Git Bash 路径转换 + MSYS 解决 + owner_id 兜底无效),PATCH 状态更新为已跑通,截图清单对齐实际文件
- 补充 8 张验证截图(ylly 环境 PowerShell/Git Bash 实跑)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-17 10:01:28 +08:00
zhangqing c7a709d3d7 feat(skills): 新增 Issue 智能分拣 Skill (gitlink-issue-triage)
- SKILL.md:3 个工作流(自动分类打标签 / 自动分配+通知 / 批量分拣+报告)
- examples/issue-triage-workflow.md:3 个场景使用示例
- examples/verification.md:源码核对 + 在 ylly/gitlink-cli 实跑验证
  - 真实给 Issue #7 打上"缺陷"标签
  - 发现并记录两条平台限制:assigners 个人仓库为空、notification 跨用户 403

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-16 15:34:02 +08:00
15972095207 3a79c72813 feat(skills): 新增文档智能维护和新人引导两个 Skill
- gitlink-docs-assistant(ZxR):扫描仓库检测缺失文档,AI 自动生成 CONTRIBUTING/CHANGELOG 并写入 Wiki,支持同步更新
- gitlink-onboarding(ylly):识别 good-first-issue、自动打标签、生成个性化引导评论和项目入门指南
- 每个 Skill 含 SKILL.md + 使用示例 + Claude Code 真实验证记录 + 截图证据

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-16 09:17:49 +08:00
ZxR acb87cb1a0 文档只能维护skill 2026-06-15 11:59:20 +08:00
15972095207 84e3a37daa 1 2026-06-09 08:04:41 +08:00
15972095207 47c06bca21 测试流水线 2026-06-04 15:02:49 +08:00
15972095207 f113735d69 测试流水线 2026-06-04 14:56:04 +08:00
15972095207 675b3490d4 测试流水线 2026-06-04 14:54:40 +08:00
15972095207 3ee64a941c 测试流水线 2026-06-04 14:53:40 +08:00
15972095207 ecc6bcca2b fix: use correct API endpoint for notification delete
DELETE /users/{owner}/messages with {type, ids} body,
not DELETE on individual message path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 10:16:50 +08:00
15972095207 97ddd456dd fix: add type field to notification read request body
API requires both type and ids fields for marking notifications as read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 09:44:48 +08:00
15972095207 49415faf54 fix: use correct API endpoint for notification read
GitLink uses POST /users/{owner}/messages/read with ids array,
not PATCH on individual message. Fixed code and test accordingly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 09:42:26 +08:00
15972095207 97f9f63645 fix: use --label clear to remove labels from issue
Empty string doesn't work as CLI flag value. Use 'clear' keyword instead:
- --label 327264,327265  set labels
- --label clear          remove all labels

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 09:12:44 +08:00
15972095207 c8b4eb2ea0 feat: add --label support to issue update command
Support setting or clearing labels on existing issues:
- --label 327264,327265  set labels
- --label ""            clear all labels

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 09:10:15 +08:00
15972095207 ed7a2bbcd6 feat: support multiple labels in issue create (--label id1,id2)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 08:59:33 +08:00
15972095207 7f53548244 fix: use correct issue_tag_ids field for issue create --label
The GitLink v1 API expects issue_tag_ids (array of integers), not label_id.
This fixes the bug where --label was silently ignored when creating issues.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 08:50:37 +08:00
15972095207 2760c47115 fix: use PUT method for wiki update and align with reference implementation
The update API requires PUT, not POST. Previous commit 7a85c6d incorrectly
changed it to POST which caused HTTP 500 errors. Also added shared test
helpers to common package and rewrote wiki tests to match reference files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 21:46:34 +08:00
15972095207 7a82eef766 fix: always include message field in wiki update request body
The gateway API requires the message field to be present (even as empty
string). Previously update omitted it when --message was not provided,
causing HTTP 500 errors. Also removed dead code in callWikiAPI and added
a test for update without message.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 21:08:54 +08:00
15972095207 7a85c6df88 fix: use POST instead of PUT for wiki update (gateway compatibility) 2026-06-03 20:59:37 +08:00
15972095207 114aed603b fix: omit empty message field in wiki update to avoid 500 error 2026-06-03 20:46:01 +08:00
15972095207 5cb6ea1cd1 fix: wiki commands use correct gateway API (gateway.gitlink.org.cn) 2026-06-03 20:27:19 +08:00
ZxR d3bdbbc28a Merge branch 'master' of https://gitlink.org.cn/ylly/gitlink-cli 2026-06-02 16:02:12 +08:00
ZxR 1c6cb6ae9c fix: update label tests to match corrected API path 2026-06-02 16:01:00 +08:00
zhangqing 263c20801a fix: update notification test paths to include .json suffix
The HTTP client automatically appends .json to API paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-02 15:24:15 +08:00
zhangqing dee04432d2 fix: use ctx.Owner instead of global cmdutil.Owner in notification
Tests set Owner on RuntimeContext, not on the global cmdutil variable.
This fixes all 4 notification test failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-02 15:21:12 +08:00
zhangqing 1e32e12145 feat: add notification module + fix issue --label bug
- Add notification +list, +view, +read, +delete commands
- Add notification unit tests
- Register notification module in register.go
- Fix issue +create ignoring --label flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-02 15:08:53 +08:00
ZxR e53c92be46 fix: correct label API path to /{owner}/{repo}/labels 2026-06-02 11:48:20 +08:00
ZxR 67f8068e3e 增加label 标签管理 2026-06-02 11:14:40 +08:00
15972095207 0362f3f604 feat: add wiki +view,+create,+update,+delete shortcuts with tests 2026-06-02 10:42:25 +08:00
15972095207 1e28d3775d feat: fix wiki +list API path to /{owner}/{repo}/wiki/pages 2026-06-02 09:42:26 +08:00
15972095207 0c76b3bab0 feat: add wiki +list shortcut 2026-06-02 09:21:25 +08:00
15972095207 469a82f1b0 Merge branch 'master' of https://gitlink.org.cn/ylly/gitlink-cli 2026-05-28 20:41:00 +08:00