feat(ignore): add ignore template shortcuts #202

Merged
wbtiger merged 1 commits from wangyue111/gitlink-cli:feat/ignore-template-shortcuts into master 2026-07-14 20:40:09 +08:00
Contributor

背景

GitLink OpenAPI 提供 .gitignore 模板列表接口 GET /ignores,但 CLI 没有对应命令。创建仓库、项目脚手架、Agent Bootstrap 工作流需要先知道平台支持哪些 ignore 模板。

新增功能

新增 gitlink-cli ignore +list

  • 不带参数列出所有内置 .gitignore 模板
  • --name 按模板名称过滤,例如 Go / Python

OpenAPI 对齐

  • GET /ignores
  • GET /ignores?name=<name>

价值

  • 补齐 OpenAPI 中忽略文件模板查询能力
  • 仓库创建前可先选择合法 ignore template id/name
  • 只读命令,无远端修改风险

测试

git diff --check
GOPROXY=https://goproxy.cn,direct go test ./shortcuts/ignore ./shortcuts
go vet ./shortcuts/ignore ./shortcuts
go run . ignore --help
go run . ignore +list --help
GOPROXY=https://goproxy.cn,direct go test ./...
go vet ./...

文档

  • 更新 README / README.zh-CN
  • 更新 skills/README
  • 新增 skills/gitlink-ignore/SKILL.md
  • 新增 doc/changes/ignore-template-shortcuts.md
## 背景 GitLink OpenAPI 提供 `.gitignore` 模板列表接口 `GET /ignores`,但 CLI 没有对应命令。创建仓库、项目脚手架、Agent Bootstrap 工作流需要先知道平台支持哪些 ignore 模板。 ## 新增功能 新增 `gitlink-cli ignore +list`: - 不带参数列出所有内置 `.gitignore` 模板 - `--name` 按模板名称过滤,例如 Go / Python ## OpenAPI 对齐 - `GET /ignores` - `GET /ignores?name=<name>` ## 价值 - 补齐 OpenAPI 中忽略文件模板查询能力 - 仓库创建前可先选择合法 ignore template id/name - 只读命令,无远端修改风险 ## 测试 ```bash git diff --check GOPROXY=https://goproxy.cn,direct go test ./shortcuts/ignore ./shortcuts go vet ./shortcuts/ignore ./shortcuts go run . ignore --help go run . ignore +list --help GOPROXY=https://goproxy.cn,direct go test ./... go vet ./... ``` ## 文档 - 更新 README / README.zh-CN - 更新 skills/README - 新增 `skills/gitlink-ignore/SKILL.md` - 新增 `doc/changes/ignore-template-shortcuts.md`
wangyue111 force-pushed feat/ignore-template-shortcuts from 3929109d3c to f6e9fd64b4 2026-06-14 23:43:03 +08:00 Compare
wangyue111 force-pushed feat/ignore-template-shortcuts from f6e9fd64b4 to bc64e59bd2 2026-06-16 08:20:54 +08:00 Compare
wbtiger merged commit 01ebb4e656 into master 2026-07-14 20:39:51 +08:00
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#202
No description provided.