gitlink-cli/doc/changes
luwanzhou 81d30d6741 fix(api): resolve :owner/:repo and --var placeholders in single calls
gitlink-cli api <METHOD> <PATH> 单次调用此前直接发送原始路径,不替换
REST 风格的 :owner/:repo 占位符——导致该命令自身的 Example
(api POST /:owner/:repo/issues)以及依赖该写法的 Skill/文档无法使用。

- 新增 resolveAPIPath:先按 --var 渲染 {{var}} 模板(复用批处理模板引擎),
  再用 context.ResolveOwnerRepo(--owner/--repo → git remote,与所有 shortcut
  一致)替换 :owner/:repo,最后补全前导 /。
- :owner/:repo 正则用 \b 边界避免误伤 :owner_id;ReplaceAllLiteralString
  避免 owner/repo 中的 $ 被当作正则替换引用。
- 不含占位符且无 --var 的调用行为不变。
- 更新命令 Example;新增单元测试(占位符解析、单次 --var 渲染、缺失变量报错)。

修复 Issue: api 命令单次调用不替换 :owner/:repo 占位符。
2026-06-15 12:36:58 +08:00
..
api-batch-runner.md feat: 新增 Raw API 批处理执行器 2026-06-06 11:55:20 +08:00
api-path-placeholders.md fix(api): resolve :owner/:repo and --var placeholders in single calls 2026-06-15 12:36:58 +08:00
auth-config-dir-fallback.md fix: 统一认证凭据 fallback 配置目录 2026-06-06 18:42:50 +08:00
dataset-shortcuts.md feat(dataset): add full dataset CRUD (view/create/update/delete-attachment) 2026-06-14 14:01:57 +08:00
doctor-command.md feat: 新增 CLI 自诊断命令 2026-06-06 18:11:45 +08:00
ignore-shortcut.md feat(shortcut): add shortcuts/ignore 2026-06-09 08:50:39 +08:00
issue-id-alias.md feat(issue): support metadata fields and id alias 2026-06-02 12:42:34 +08:00
issue-metadata-fields.md feat(issue): support metadata fields and id alias 2026-06-02 12:42:34 +08:00
label-shortcut.md feat(label): add issue label shortcuts 2026-05-30 06:38:39 -07:00
list-filter-fixes.md fix: 修正 Issue 和 PR 列表筛选 2026-06-05 11:43:30 +08:00
member-shortcut.md feat(member): add repository member shortcuts (#46) 2026-05-27 00:24:15 +08:00
milestone-shortcut.md feat: add milestone, compare, pr reopen shortcuts and api enhancements (#45) 2026-05-27 00:44:39 +08:00
pipeline-openapi-shortcuts.md feat(pipeline): add OpenAPI shortcuts 2026-05-27 22:20:18 +08:00
profile-shortcuts.md feat(profile): 新增用户画像统计快捷命令 2026-06-13 23:07:27 +08:00
release-update-shortcuts.md feat(release): add edit and update shortcuts 2026-06-08 08:30:21 +08:00
repo-insight-shortcuts.md feat(repo): add insight and interaction shortcuts 2026-06-04 07:17:13 +08:00
repo-settings-shortcuts.md feat(repo): add settings and topic shortcuts 2026-06-04 07:19:08 +08:00
repo-tree-shortcut.md chore: 打磨仓库文件树命令交付质量 2026-06-08 12:13:28 +08:00
webhook-shortcut.md docs: finalize webhook shortcut docs 2026-05-19 15:54:31 +08:00