Commit Graph

6 Commits

Author SHA1 Message Date
Donkey_kevin 19b0e31bf8 feat: 补全 Raw API 封装 — file/milestone/issue增强/pr增强 + 单元测试
新增模块:
- file: 11个命令 (ls/tree/read/readme/search/create/update/delete/batch/commits/diff)
- milestone: 6个命令 (list/create/view/update/delete/status)

Issue增强:
- 元数据查询: +statuses/+authors/+assigners/+priorities
- 评论管理: +comment-edit/+comment-delete/+replies
- 批量删除: +batch-destroy (原生batch_destroy接口)

PR增强:
- +reopen/+update/+commits/+versions/+vdiff/+filesv1
- 评论管理: +comment-edit/+comment-delete

其他:
- 新增 board 看板模块, compliance 合规模块
- 更新 README.md/README.zh-CN.md 帮助文档
- 43个单元测试全部通过

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-09 23:38:52 +08:00
狗gogo b1bf96141c feat: add repo batch-delete, unify api error envelope, harden wiki handling
- repo: 新增 `+batch-delete` shortcut(--names / --from CSV / --dry-run),
  补齐 batch-create / batch-update / batch-delete 三件套
- api: 新增 `--body-file` 解决 PowerShell 调用 .exe 时剥离内嵌引号的问题;
  JSON 解析、参数冲突、读文件失败、网络错误统一按 envelope 输出,
  便于 --format json + jq 自动化解析
- wiki: unwrapGatewayResponse 接受全部 HTTP 2xx(修复 DELETE 返回 204 被误判失败);
  错误改返回 *clierrors.CLIError 让 envelope 输出生效;fetchPageContent 自动重试
  ".-" 后缀(GitLink 后端给 sub_url 加后缀导致 GET 404);outputWithDecodedContent
  解码 base64 字段为明文提升 agent 可读性;wiki +delete 先解析实际 pageName 再
  DELETE,删除后强制 GET 验证并返回结构化结果

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-01 13:07:29 +08:00
狗gogo 3e867d23f8 refactor: improve error handling, output formatting, and wiki/webhook shortcuts
- Add dedicated error_print.go for centralized error output
- Enhance formatter with better table/json/yaml rendering
- Add unit tests for output formatter
- Improve runner with cleaner error propagation
- Update globals and root command configuration
- Refine webhook and wiki shortcut implementations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-27 19:16:53 +08:00
camelliamc 89afa968fd fix:统一错误提示优化+Issue标签ID动态获取 2026-06-04 10:36:41 +08:00
狗gogo 5fd2ad0c6d Update webhook functionality and fix authentication issues
- Updated webhook shortcuts with enhanced functionality
- Fixed authentication issues in login.go and auth.go
- Improved repo context resolution
- Added npm package configuration
- Updated binary build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 23:19:43 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00