Commit Graph

139 Commits

Author SHA1 Message Date
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
15972095207 2d1f7e7e3a 测试SSH密钥认证 2026-05-28 20:40:50 +08:00
ylly 2ce7d8dc71 refactor: .devops/自动部署.yml 2026-05-28 20:40:39 +08:00
15972095207 7b1b89ffb2 测试密钥引用 2026-05-28 20:25:03 +08:00
15972095207 b813f62e9b Merge branch 'master' of https://gitlink.org.cn/ylly/gitlink-cli 2026-05-28 20:10:16 +08:00
15972095207 b1acaa1cca 测试流水线 2026-05-28 20:10:05 +08:00
ylly b674a3cc91 feat: .devops/自动部署.yml 2026-05-28 20:09:20 +08:00
ylly e93624b987 refactor: delete .devops/自动部署.yml 2026-05-28 20:09:07 +08:00
15972095207 7847268660 Merge branch 'master' of https://gitlink.org.cn/ylly/gitlink-cli 2026-05-28 20:03:25 +08:00
15972095207 5140b33980 测试SSH密码 2026-05-28 20:02:57 +08:00
ylly 2237675e24 refactor: .devops/自动部署.yml 2026-05-28 20:02:46 +08:00
15972095207 19271c44a6 重新触发流水线 2026-05-28 19:56:55 +08:00
15972095207 9445835c6f 重新触发流水线 2026-05-28 19:47:25 +08:00
15972095207 7ce3eaed51 Merge branch 'master' of https://gitlink.org.cn/ylly/gitlink-cli 2026-05-28 19:39:02 +08:00