feat(cli): add productivity shortcuts and API body inputs #45

Merged
wbtiger merged 2 commits from wangyue111/gitlink-cli:feat/cli-productivity-shortcuts into master 2026-05-27 01:08:51 +08:00
Contributor

变更内容

  • 新增 milestone Shortcut 组,支持里程碑 list/create/view/update/delete/close/reopen 等操作。
  • 新增 compare Shortcut 组,支持 compare +viewcompare +files 比较分支、标签或提交。
  • 新增 pr +reopen shortcut,用于重开已关闭的 Pull Request。
  • gitlink-cli api 增加 --body-file--body-stdin,支持从文件或 stdin 读取 JSON 请求体。
  • 补充 README、中文 README、Skills 文档和变更说明。
  • 增加 milestone、compare、pr reopen、api body 输入的单元测试覆盖。

验证

  • GOPROXY=https://goproxy.cn,direct go test ./...
  • go run . milestone --help
  • go run . compare --help
  • go run . pr +reopen --help
  • go run . api POST /Gitlink/gitlink-cli/issues --help
  • git diff --check
## 变更内容 - 新增 `milestone` Shortcut 组,支持里程碑 list/create/view/update/delete/close/reopen 等操作。 - 新增 `compare` Shortcut 组,支持 `compare +view` 和 `compare +files` 比较分支、标签或提交。 - 新增 `pr +reopen` shortcut,用于重开已关闭的 Pull Request。 - 为 `gitlink-cli api` 增加 `--body-file` 和 `--body-stdin`,支持从文件或 stdin 读取 JSON 请求体。 - 补充 README、中文 README、Skills 文档和变更说明。 - 增加 milestone、compare、pr reopen、api body 输入的单元测试覆盖。 ## 验证 - `GOPROXY=https://goproxy.cn,direct go test ./...` - `go run . milestone --help` - `go run . compare --help` - `go run . pr +reopen --help` - `go run . api POST /Gitlink/gitlink-cli/issues --help` - `git diff --check`
wbtiger closed this pull request 2026-05-27 00:44:22 +08:00
wbtiger reopened this pull request 2026-05-27 01:00:31 +08:00
wbtiger force-pushed feat/cli-productivity-shortcuts from 7cd7d74fa5 to 898b7f59d1 2026-05-27 01:04:05 +08:00 Compare
wbtiger force-pushed feat/cli-productivity-shortcuts from 737bede0a5 to 85fa1f2e07 2026-05-27 01:08:11 +08:00 Compare
wbtiger force-pushed feat/cli-productivity-shortcuts from 85fa1f2e07 to 00c753b421 2026-05-27 01:08:42 +08:00 Compare
wbtiger merged commit c89e398b46 into master 2026-05-27 01:08:51 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#45
No description provided.