wbtiger
177f9082d8
Merge pull request 'feat(issue): 新增 batch-reopen / batch-comment 批量操作' ( #407 ) from chroe/gitlink-cli:feat/issue-batch-reopen-comment into master
2026-07-14 20:43:19 +08:00
wbtiger
b45ff6af88
Merge pull request 'feat(issue): add issue +reopen to reopen a closed issue' ( #362 ) from heke1228/gitlink-cli:feat/issue-reopen into master
2026-07-14 20:40:58 +08:00
wbtiger
9e3bc3f66b
Merge pull request 'fix(issue): preserve metadata during batch close' ( #145 ) from dtwdtw/gitlink-cli:fix/batch-close-issue-metadata into master
2026-07-14 20:40:31 +08:00
chroe
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 路径 + 必填参数校验)。
2026-07-09 22:13:52 +08:00
林晨 (Leo Cheng)
8f5cc1637d
feat(issue): add issue +reopen to reopen a closed issue
...
Signed-off-by: 林晨 (Leo Cheng) <chengkelfan@qq.com>
2026-07-08 12:11:47 +08:00
wangyue789
0703d3eba9
feat(issue): add batch maintenance shortcuts
2026-06-15 08:21:10 +08:00
dtwdtw
ecffc5d972
fix(issue): preserve metadata when batch closing
2026-06-08 12:01:08 +08:00
Mengz
0b48ec90d8
fix: 修正 Issue 和 PR 列表筛选
2026-06-05 11:43:30 +08:00
wbtiger
559e1a74f3
chore: ensure trailing newline
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 22:37:40 +08:00
wbtiger
9843fc7ceb
Merge PR #57 : feat(issue): support metadata fields
...
Resolved conflicts with i18n infrastructure from PR #95 and metadata
lookup shortcuts from PR #43 .
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 22:46:34 +08:00
wbtiger
8e558cceca
Merge pull request 'feat(issue): add metadata lookup shortcuts' ( #43 ) from wangyue111/gitlink-cli:feat/issue-metadata-shortcuts into master
2026-06-02 22:30:26 +08:00
wangyue789
34be160d96
feat(issue): add metadata lookup shortcuts
2026-06-02 12:45:30 +08:00
wangyue789
89d5321713
feat(issue): support metadata fields and id alias
2026-06-02 12:42:34 +08:00
whzy
37dfd2e2e2
feat(i18n): add CLI localization foundation
2026-06-01 17:33:10 +08:00
wbtiger
18975162a1
fix(issue): treat view id as issue number
...
Support --id as alias for --number in issue +view command.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 23:52:55 +08:00
wbtiger
0170b5b063
test: add comprehensive test coverage across all packages (88.5% → 90.3%)
...
Add 18 new test files covering formatter, envelope, config, auth,
client, context, register, and all shortcut group packages.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 15:41:54 +08:00
wangyue789
23a478bd69
feat(issue): add authors shortcut
2026-05-25 08:50:47 +08:00
wangyue789
9638d279d3
feat(issue): add assigners shortcut
2026-05-25 08:49:41 +08:00
Tiger
64c0ff3cb5
Normalize issue +list output to use project-level issue numbers
...
The API returns both "id" (global database PK) and "project_issues_index"
(per-project sequential number). The +list JSON output was a raw API
pass-through, making the database ID the most prominent identifier.
This change normalizes each issue in the list:
- Add "number" field from project_issues_index (matches the web URL)
- Rename "id" to "database_id" to prevent confusion
The "number" field now matches the --number flag used by +view, +close,
+update, and +comment commands.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 01:00:31 +08:00
wangyue789
b2e840f498
feat(issue): add batch close shortcut with dry-run support
2026-05-13 17:27:50 +08:00
wbtiger
44147bd71a
fix: Issue 操作切换到 v1 API,统一使用 project_issues_index 替代数据库 ID
...
改动:
- Issue 所有操作(list/view/create/update/close/comment)从旧版 /api/ 切到 /api/v1/
- flag --id/-i 改为 --number/-n(与网页 URL 中的 Issue 编号一致)
- create 增加 status_id:1(必填,v1 API 要求)
- update/close 的 HTTP 方法从 PUT 改为 PATCH(v1 API 规范)
- comment 的请求字段从 content 改为 notes(v1 API 字段名)
- comment 路径从 /issues/{id}/journals 改为 /v1/{owner}/{repo}/issues/{number}/journals
Fixes #9
2026-05-12 16:55:23 +08:00
Zhang Jinnan
46aa383d76
fix: preserve issue description on updates
2026-04-28 08:43:51 +08:00
wbtiger
e892370de8
init gitlink-cli
2026-04-17 10:01:30 +08:00