feat(shortcut): 新增 pm 命令组(项目管理:仪表盘/Sprint/周报等) #390
Loading…
Reference in New Issue
No description provided.
Delete Branch "jiangtx/gitlink-cli:pr-shortcut-pm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
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.mddoc/changes/pm-shortcut.mdshortcuts/register.go仅新增 3 行Pull request closed