gitlink-cli/shortcuts
1os21ka23r9navae6mrro 9588c113cf feat(file): add +batch for multi-file single-commit operations
The contents/batch endpoint accepts multiple file operations per
commit, but each existing shortcut sent exactly one. file +batch
takes a JSON spec (array of {action_type, file_path, content,
encoding}) and applies them atomically in one commit:

  gitlink-cli file +batch -s spec.json -b master -m 'batch ops'

Client-side validation: action_type must be create|update|delete,
file_path required. content/encoding are normalized for delete
entries — the server rejects entries missing content with
'请输入正确的文件参数Files' (production-reproduced).

Production-verified on gitlink.org.cn: 2-file create in one commit,
then 2-file delete in one commit. Unit test covers payload shape,
delete normalization, and action_type validation.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 14:52:09 +00:00
..
branch feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
ci feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
common feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
compare feat: add milestone, compare, pr reopen shortcuts and api enhancements (#45) 2026-05-27 00:44:39 +08:00
dataset feat(dataset): add full dataset CRUD (view/create/update/delete-attachment) 2026-06-14 14:01:57 +08:00
file feat(file): add +batch for multi-file single-commit operations 2026-07-08 14:52:09 +00:00
health fix(health): use effective list filters 2026-06-05 14:56:02 +08:00
ignore feat(shortcut): add shortcuts/ignore 2026-06-09 08:50:39 +08:00
issue feat(issue): add batch maintenance shortcuts 2026-06-15 08:21:10 +08:00
label feat(label): add issue label shortcuts 2026-05-30 06:38:39 -07:00
license feat(shortcut): add shortcuts/license 2026-06-05 16:46:37 +08:00
member feat(member): add repository member shortcuts (#46) 2026-05-27 00:24:15 +08:00
milestone feat: add milestone, compare, pr reopen shortcuts and api enhancements (#45) 2026-05-27 00:44:39 +08:00
org feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
pipeline feat(pipeline): add OpenAPI shortcuts 2026-05-27 22:20:18 +08:00
pr fix: 修正 Issue 和 PR 列表筛选 2026-06-05 11:43:30 +08:00
profile feat(profile): 新增用户画像统计快捷命令 2026-06-13 23:07:27 +08:00
release feat(release): add edit and update shortcuts 2026-06-08 08:30:21 +08:00
repo chore: 打磨仓库文件树命令交付质量 2026-06-08 12:13:28 +08:00
search feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
user feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
webhook feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +08:00
wiki feat(shortcut): add shortcuts/wiki 2026-06-16 10:24:15 +08:00
workflow chore: fix CI workflow, golangci-lint config, and minor lint/format issues 2026-05-31 22:45:17 +08:00
register.go feat(file): wire file shortcuts into i18n with en-US/zh-CN locales 2026-07-05 10:50:12 +00:00
register_test.go feat(file): 新增 file 快捷命令组(+view/+search/+create/+update/+delete) 2026-07-05 09:41:32 +00:00