Commit Graph

42 Commits

Author SHA1 Message Date
wbtiger 1922f505d6 fix: resolve build errors from batch merge conflict resolution
- Restore origin/master core skeleton files (types.go, runner.go, client.go)
- Add NoProgress field to Client struct for upload.go
- Remove duplicate file declarations (testing_helpers.go, batch_common.go, etc.)
- Remove batch_*.go files that conflict with origin/master batch.go
- Fix workflow newPRSummaryShortcut call signature
- Fix duplicate wiki key in register.go

Note: Some new PR features (PaginateAllKey, DoRaw, etc.) require framework
extensions not yet integrated. These PRs' tests may fail until their framework
changes are properly merged.
2026-07-14 22:55:29 +08:00
wbtiger b8589dc93c Merge PR #103: feat: 新建 pm 模块,添加 6 条项目管理命令
# Conflicts:
#	cmd/alias/alias.go
#	cmd/alias/alias_test.go
#	cmd/browse/browse.go
#	cmd/browse/browse_test.go
#	cmd/root.go
#	internal/client/client.go
#	internal/client/client_test.go
#	shortcuts/notification/notification.go
#	shortcuts/pm/pm.go
#	shortcuts/pm/pm_test.go
#	shortcuts/pr/pr.go
#	shortcuts/register.go
#	shortcuts/repo/repo_test.go
#	shortcuts/user/user.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
#	skills/gitlink-ci/SKILL.md
#	skills/gitlink-code-review/SKILL.md
#	skills/gitlink-commit-quality/SKILL.md
#	skills/gitlink-compliance/SKILL.md
#	skills/gitlink-contributor-insight/EXAMPLES.md
#	skills/gitlink-contributor-insight/SKILL.md
#	skills/gitlink-contributor-insight/examples/jiangtx-gitlink-cli.md
#	skills/gitlink-insight/SKILL.md
#	skills/gitlink-issue-triage/SKILL.md
#	skills/gitlink-notification-digest/EXAMPLES.md
#	skills/gitlink-notification-digest/SKILL.md
#	skills/gitlink-org/SKILL.md
#	skills/gitlink-repo/SKILL.md
#	skills/gitlink-shared/SKILL.md
#	skills/gitlink-user/SKILL.md
#	skills/gitlink-workflow/SKILL.md
2026-07-14 22:50:21 +08:00
wbtiger b2d9c504eb Merge PR #338: feat(list): issue/pr/branch/release +list 新增 --all 自动翻页(翻页助手
# Conflicts:
#	cmd/api/api.go
#	internal/client/pagination.go
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/branch/branch.go
#	shortcuts/commit/commit.go
#	shortcuts/commit/commit_test.go
#	shortcuts/issue/issue.go
#	shortcuts/label/label.go
#	shortcuts/member/member.go
#	shortcuts/member/member_test.go
#	shortcuts/milestone/milestone.go
#	shortcuts/pr/pr.go
#	shortcuts/tag/tag.go
#	shortcuts/tag/tag_test.go
#	shortcuts/webhook/webhook.go
2026-07-14 22:50:19 +08:00
wbtiger 4fbc6dea4d Merge PR #349: feat: 新增Wiki/Label/Notification命令 + 批量处理命令+Snippet/自然语言do创新
# Conflicts:
#	cmd/root.go
#	doc/changes/label-shortcut.md
#	doc/changes/notification-shortcut.md
#	internal/output/formatter.go
#	shortcuts/common/types.go
#	shortcuts/issue/batch.go
#	shortcuts/issue/issue.go
#	shortcuts/label/label.go
#	shortcuts/label/label_test.go
#	shortcuts/notification/notification.go
#	shortcuts/notification/notification_test.go
#	shortcuts/register.go
#	shortcuts/snippet/snippet.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
#	skills/README.md
#	skills/gitlink-issue-triage/SKILL.md
#	skills/gitlink-onboarding/SKILL.md
#	skills/gitlink-onboarding/examples/onboarding-workflow.md
2026-07-14 22:50:18 +08:00
wbtiger ca17974d1f Merge PR #408: 提交pr
# Conflicts:
#	.gitignore
#	.golangci.yml
#	Makefile
#	cmd/root.go
#	internal/client/client.go
#	shortcuts/_template/template.go
#	shortcuts/branch/branch_test.go
#	shortcuts/ci/ci.go
#	shortcuts/ci/ci_test.go
#	shortcuts/common/types.go
#	shortcuts/file/file.go
#	shortcuts/file/file_test.go
#	shortcuts/issue/batch.go
#	shortcuts/issue/batch_test.go
#	shortcuts/issue/issue_test.go
#	shortcuts/label/label.go
#	shortcuts/label/label_test.go
#	shortcuts/member/member.go
#	shortcuts/member/member_test.go
#	shortcuts/milestone/milestone.go
#	shortcuts/milestone/milestone_test.go
#	shortcuts/org/org.go
#	shortcuts/org/org_test.go
#	shortcuts/pm/pm.go
#	shortcuts/pm/pm_test.go
#	shortcuts/pr/pr.go
#	shortcuts/pr/pr_test.go
#	shortcuts/register.go
#	shortcuts/register_test.go
#	shortcuts/release/release_test.go
#	shortcuts/search/search.go
#	shortcuts/search/search_test.go
#	shortcuts/user/user.go
#	shortcuts/user/user_test.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
#	skills/README.md
#	skills/gitlink-ci/SKILL.md
#	skills/gitlink-file/SKILL.md
#	skills/gitlink-issue/SKILL.md
#	skills/gitlink-label/SKILL.md
#	skills/gitlink-member/SKILL.md
#	skills/gitlink-org/SKILL.md
#	skills/gitlink-pm/SKILL.md
#	skills/gitlink-pr/SKILL.md
#	skills/gitlink-research-insight/SKILL.md
#	skills/gitlink-research-progress/SKILL.md
#	skills/gitlink-user/SKILL.md
#	skills/gitlink-wiki/SKILL.md
2026-07-14 22:50:17 +08:00
wbtiger dc0154018e Merge PR #242: feat: 新增 wiki 管理快捷命令
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/register_test.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
2026-07-14 22:50:12 +08:00
wbtiger a0046babb8 Merge PR #159: Add member application workflow shortcuts
# Conflicts:
#	doc/changes/member-application-shortcuts.md
#	internal/client/client.go
#	shortcuts/member/member.go
#	shortcuts/member/member_test.go
#	skills/gitlink-member/SKILL.md
2026-07-14 22:50:11 +08:00
wbtiger 7a0f873643 Merge PR #353: feat(attachment): 新增 attachment +upload/+download 附件上传下载命令组
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/attachment/attachment.go
#	shortcuts/attachment/attachment_test.go
#	shortcuts/register.go
#	shortcuts/register_test.go
#	shortcuts/release/release.go
#	shortcuts/release/release_test.go
2026-07-14 22:50:10 +08:00
wbtiger a781f5a69c Merge PR #196: feat(release): 增加发布资产管理快捷命令
# Conflicts:
#	internal/client/client.go
#	shortcuts/common/types.go
#	shortcuts/release/assets.go
#	shortcuts/release/release_test.go
2026-07-14 22:50:02 +08:00
wbtiger d5ffff930e Merge PR #222: feat(attachment): 新增附件上传与删除快捷命令
# Conflicts:
#	internal/client/client.go
#	shortcuts/register.go
#	shortcuts/register_test.go
2026-07-14 22:50:02 +08:00
wbtiger ae5b27687f Merge PR #281: fix(api): 补齐单次请求模板变量与请求头支持
# Conflicts:
#	cmd/api/api.go
#	cmd/api/api_test.go
2026-07-14 22:49:56 +08:00
wbtiger 572cec4f54 Merge PR #313: feat(release): 增加发布资产查看与下载能力
# Conflicts:
#	internal/client/client_test.go
#	shortcuts/release/release_test.go
2026-07-14 22:49:53 +08:00
maidamaliziasimnw 466a3d5fd9 test(client): 新增 PaginateAllKey 基准测试(模拟每页延迟,覆盖并发翻页路径)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-10 17:39:24 +00:00
maidamaliziasimnw 5893393473 perf(pagination): total_count 已知时并发抓取剩余页(有界 5 worker,保持页序),--all 大列表实测 20.2s→8.4s
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-10 16:41:08 +00:00
Surponess b1db102e9d 修改仓库内容 2026-07-10 10:55:03 +08:00
林晨 (Leo Cheng) 5511d492cb
feat(api): add --paginate and unwrap GitLink list responses in PaginateAll
Signed-off-by: 林晨 (Leo Cheng) <chengkelfan@qq.com>
2026-07-08 12:43:33 +08:00
Taoyouce 682604f238 feat(attachment): +upload 支持多文件并发上传(-c 并发数,默认 3) 2026-07-07 16:30:00 +00:00
Taoyouce 19209c5cea feat(attachment): 下载进度显示(含无 Content-Length 的按 MiB 步进模式) 2026-07-07 15:56:08 +00:00
Taoyouce cd5338f303 perf(attachment): 上传流式化(io.Pipe 零内存缓冲)+ 大文件进度显示 2026-07-07 15:43:34 +00:00
Taoyouce 560ca9b5f0 feat(attachment): 新增 attachment +upload/+download 附件上传下载命令组 2026-07-07 15:24:46 +00:00
laurencewannamaker 1ca60f9280 feat(list): 新增 tag +list 命令组、watchers/stargazers 分页;修复翻页助手服务端封顶 limit 丢数据 bug
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 23:04:13 +00:00
laurencewannamaker 343c5494fb feat(list): --all 推广至 milestone/org/repo/search,共 9 个分页 list 命令;总数字段兼容 count
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 22:22:41 +00:00
laurencewannamaker b82378bb4e feat(list): --all 自动翻页,翻页助手对齐生产 API 资源键包裹形状
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 22:05:58 +00:00
Mengz 898af8cd80 feat: 新增 Release 资产下载命令 2026-07-01 11:44:03 +08:00
Mengz ac211ac4e9 fix(api): 补齐单次请求模板变量与请求头支持 2026-06-25 16:49:58 +08:00
co63oc 2c9a8b6192 feat(shortcut): add shortcuts/wiki 2026-06-16 10:24:15 +08:00
co63oc 339900785f fix(client): support gateway error format and wiki/open paths
Cherry-picked from co63oc's PR #193:
- Handle gateway {"code":N, "msg":"..."} error format
- Extend success status codes (201, 204)
- Exclude wiki/open paths from .json suffix auto-append

Co-Authored-By: co63oc <4617245+co63oc@users.noreply.github.com>
2026-06-14 22:51:38 +08:00
luwanzhou f9f96cfedc fix(wiki): gateway域名支持 & 去除.json后缀
- wiki API 仅在 gateway.gitlink.org.cn 上可用,prepare() 中自动切换域名
- gateway 不接受 .json 后缀,shouldAppendJSONSuffix 排除 /wiki/open/ 路径
- 测试路径同步更新(去除 .json 后缀)
- 已验证: +list, +view, +create(dry-run), +update(dry-run), +delete(dry-run)
- TODO: wiki +export 的 /wikiExport API 返回 500,待平台修复后跟进
2026-06-14 03:33:08 +08:00
Mengz 3dfce6f9e7 feat(release): 增加发布资产管理快捷命令 2026-06-10 17:05:02 +08:00
Mengz e578677667 feat(member): 新增成员申请处理快捷命令 2026-06-09 19:42:58 +08:00
Mengz 8deb09d4ff fix: address attachment shortcut review feedback 2026-06-09 11:12:01 +08:00
Mengz 8219c0b6dc feat: add attachment shortcut group 2026-06-09 11:10:55 +08:00
15972095207 5cb6ea1cd1 fix: wiki commands use correct gateway API (gateway.gitlink.org.cn) 2026-06-03 20:27:19 +08:00
林迪文 9b08029643 merge: resolve client.go conflict, keep XML declaration fix 2026-06-03 08:58:40 +08:00
林迪文 044e736a1b fix: detectHTMLResponse 跳过 XML 声明,添加 HTML 响应检测
- 在 json.Unmarshal 之前检测 HTML 响应
- detectHTMLResponse 先 strip <?xml...?> 声明再检查 HTML 前缀
- 返回中文诊断提示替代原始 JSON parse error
- 修复 Code Review: TestDetectHTMLResponse/XML_声明后跟_HTML

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 08:33:52 +08:00
蒋天翔 aa0a623a73 feat: 添加 Raw API HTML 响应自动检测与诊断提示
当 GitLink API 返回 HTML 页面(如登录页)而非 JSON 数据时,
自动识别并返回结构化错误信息,包含可能原因和修复建议。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 16:02:59 +08:00
wbtiger 902886cabd Merge pull request 'fix: preserve raw file API paths' (#85) from dtwdtw/gitlink-cli:fix/issue-142586-raw-file-api into master 2026-06-01 01:04:25 +08:00
wbtiger 0170b5b063 test: add comprehensive test coverage across all packages (88.5% → 90.3%)
Add 18 new test files covering formatter, envelope, config, auth,
client, context, register, and all shortcut group packages.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 15:41:54 +08:00
wbtiger f7263cc466 chore: add golangci-lint config and fix lint issues
- Add .golangci.yml with 8 essential linters (errcheck, govet,
  ineffassign, staticcheck, unused, errorlint, gosec, misspell)
- Fix real bugs: errors.As, %w wrapping, nil map check, dead code,
  unnecessary conversion, unused parameters
- Add `make lint` target, include it in `make check` pipeline
- Update pre-commit hook to run lint step

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:37:45 +08:00
fsafasff c28b72d46f fix: preserve raw file API paths 2026-05-29 11:41:10 +08:00
wbtiger 36249f3087 feat: add PR closed time and repo README shortcuts (#49, #52)
PR #49 (dtwdtw): enrich PR view with closed_at from issue journals
- Fetches close timestamp for closed/rejected PRs
- Skips extra API call for open PRs
- 2 new tests

PR #52 (dtwdtw): add repo +readme shortcut
- Fetches README content with optional --ref and --path params
- normalizeAPIPath prevents duplicate /api prefix in client
- 4 new tests (3 client + 1 repo)

Co-authored-by: dtwdtw <dtwdtw>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:35:31 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00