feat(shortcut): 新增 pm 命令组(项目管理:仪表盘/Sprint/周报等) #390

Closed
wyxttn wants to merge 0 commits from jiangtx/gitlink-cli:pr-shortcut-pm into master
Contributor

背景

GitLink 项目管理数据(仪表盘、Sprint、周报、流水线运行等)此前散落在多个 Web 页面,无命令行入口,无法脚本化或被 Agent 调用。本 PR 新增 pm 命令组补齐这一缺口。

改动内容

新增 shortcuts/pm/ 命令组(6 条子命令,均为只读 GET):

  • pm +dashboards — 查看项目仪表盘数据
  • pm +sprints — 查看 Sprint 任务列表
  • pm +weekly — 查看周报任务
  • pm +tags — 查看项目 Issue 标签
  • pm +pipelines — 查看项目 CI/CD 流水线列表
  • pm +runs — 查看项目 Action 运行记录

统一 owner/repo 自动解析与 --format json|table|yaml 输出。

测试

shortcuts/pm/pm_test.go:覆盖各命令的 HTTP 方法、路径与查询参数。

文档

  • 帮助文档:doc/commands/pm.md
  • 变更说明:doc/changes/pm-shortcut.md
  • 注册:shortcuts/register.go 仅新增 3 行
## 背景 GitLink 项目管理数据(仪表盘、Sprint、周报、流水线运行等)此前散落在多个 Web 页面,无命令行入口,无法脚本化或被 Agent 调用。本 PR 新增 `pm` 命令组补齐这一缺口。 ## 改动内容 新增 `shortcuts/pm/` 命令组(6 条子命令,均为只读 GET): - `pm +dashboards` — 查看项目仪表盘数据 - `pm +sprints` — 查看 Sprint 任务列表 - `pm +weekly` — 查看周报任务 - `pm +tags` — 查看项目 Issue 标签 - `pm +pipelines` — 查看项目 CI/CD 流水线列表 - `pm +runs` — 查看项目 Action 运行记录 统一 `owner/repo` 自动解析与 `--format json|table|yaml` 输出。 ## 测试 `shortcuts/pm/pm_test.go`:覆盖各命令的 HTTP 方法、路径与查询参数。 ## 文档 - 帮助文档:`doc/commands/pm.md` - 变更说明:`doc/changes/pm-shortcut.md` - 注册:`shortcuts/register.go` 仅新增 3 行
wyxttn added 1 commit 2026-07-09 21:49:16 +08:00
26a8d15c15 feat(shortcut): add pm command group (project management)
新增 pm 命令组,补齐 GitLink 项目管理后端的命令化访问:

- pm +dashboards  查看项目仪表盘数据
- pm +sprints     查看 Sprint 任务列表
- pm +weekly      查看周报任务
- pm +tags        查看项目 Issue 标签
- pm +pipelines   查看项目 CI/CD 流水线列表
- pm +runs        查看项目 Action 运行记录

全部只读(GET),统一 owner/repo 自动解析与 --format json|table|yaml。
含单元测试、帮助文档 doc/commands/pm.md、变更说明 doc/changes/pm-shortcut.md。

来源:GitLink 大赛 2026 子赛题一。
wbtiger closed this pull request 2026-07-14 22:56:07 +08:00
wbtiger reopened this pull request 2026-07-14 23:01:50 +08:00
wbtiger closed this pull request 2026-07-14 23:04:33 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 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#390
No description provided.