gitlink-cli/shortcuts
1os21ka23r9navae6mrro cf42b86f65 feat(pr): add +comments, +comment-edit, +comment-delete
Completes the pull-journal comment lifecycle. The CLI could only
create PR comments (via the linked issue's journals); the dedicated
v1 pull journals endpoints also support list/update/destroy:

- pr +comments -i <num>: list a PR's journals
- pr +comment-edit -i <num> -c <journal-id> -b <text> [-s state]
- pr +comment-delete -i <num> -c <journal-id>

The server's UpdateService hard-requires state in
opened|resolved|disabled (omitting it fails with
'State不包含于列表中'), so +comment-edit always sends state,
defaulting to opened, with client-side validation of the enum.
--comment-id is integer-validated.

Production-verified full lifecycle on gitlink.org.cn:
create -> list -> edit (note updated) -> delete. 3 unit tests,
README examples, bilingual i18n keys.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 14:43:26 +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
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 feat(pr): add +comments, +comment-edit, +comment-delete 2026-07-08 14:43:26 +00: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(shortcut): add shortcuts/wiki 2026-06-16 10:24:15 +08:00
register_test.go feat(shortcut): add shortcuts/wiki 2026-06-16 10:24:15 +08:00