feat(issue): 新增 batch-reopen / batch-comment 批量操作 #407

Merged
wbtiger merged 1 commits from chroe/gitlink-cli:feat/issue-batch-reopen-comment into master 2026-07-14 20:43:20 +08:00
Contributor

在现有 batch-close / batch-update / batch-delete 基础上补全 Issue 批量操作:

  • issue +batch-reopen 批量重新打开已关闭的 Issue
  • issue +batch-comment 批量为多个 Issue 添加评论

两者均复用现有批量基础设施(collectIssueNumbers / parseBool /
fetchExistingIssue / batchCloseSummary),支持 --numbers、--from CSV、
--dry-run 预演,行为与 batch-close 完全一致。

reopenIssue 复用 fetchExistingIssue 保留 subject/description 后将 status_id
置为 openIssueStatusID(1);commentIssue 向 /v1/.../issues/{n}/journals POST notes。
含单元测试(dry-run 路径 + 必填参数校验)。

在现有 batch-close / batch-update / batch-delete 基础上补全 Issue 批量操作: - issue +batch-reopen 批量重新打开已关闭的 Issue - issue +batch-comment 批量为多个 Issue 添加评论 两者均复用现有批量基础设施(collectIssueNumbers / parseBool / fetchExistingIssue / batchCloseSummary),支持 --numbers、--from CSV、 --dry-run 预演,行为与 batch-close 完全一致。 reopenIssue 复用 fetchExistingIssue 保留 subject/description 后将 status_id 置为 openIssueStatusID(1);commentIssue 向 /v1/.../issues/{n}/journals POST notes。 含单元测试(dry-run 路径 + 必填参数校验)。
chroe added 1 commit 2026-07-09 23:39:07 +08:00
f986634498 feat(issue): add batch-reopen and batch-comment shortcuts
在现有 batch-close/update/delete 基础上补全 Issue 批量操作:

- issue +batch-reopen  批量重新打开已关闭的 Issue
- issue +batch-comment 批量为多个 Issue 添加评论

两者均复用现有批量基础设施(collectIssueNumbers / parseBool /
fetchExistingIssue / batchCloseSummary),支持 --numbers、--from CSV、
--dry-run 预演,与 batch-close 行为一致。

reopenIssue 复用 fetchExistingIssue 保留 subject/description 后将
status_id 置为 openIssueStatusID(1);commentIssue 向
/v1/.../issues/{n}/journals POST notes。

含单元测试(dry-run 路径 + 必填参数校验)。
wbtiger merged commit 177f9082d8 into master 2026-07-14 20:43:20 +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#407
No description provided.