Commit Graph

49 Commits

Author SHA1 Message Date
wbtiger f2278212f3 Merge PR #374: feat(issue): add +comments, +comment-edit, +comment-delete f
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/issue/issue.go
#	shortcuts/issue/issue_test.go
2026-07-14 22:50:06 +08:00
wbtiger ff65155dc5 Merge PR #77: feat(journal): add issue and PR comment shortcuts
# Conflicts:
#	shortcuts/issue/issue.go
#	shortcuts/pr/pr_test.go
#	skills/README.md
#	skills/gitlink-issue/SKILL.md
#	skills/gitlink-pr/SKILL.md
2026-07-14 22:50:06 +08:00
wbtiger 928cb2114f Merge PR #226: feat(issue): 增加批量评论、批量更新与文件正文输入能力
# Conflicts:
#	README.md
#	shortcuts/issue/batch.go
#	shortcuts/issue/batch_test.go
#	shortcuts/issue/issue.go
#	shortcuts/issue/issue_test.go
#	skills/gitlink-issue/SKILL.md
2026-07-14 22:50:05 +08:00
wbtiger 80d7e344c3 Merge PR #271: feat(issue): 补齐 Issue 批量导出与评论管理工作流
# Conflicts:
#	README.zh-CN.md
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/issue/issue.go
#	shortcuts/issue/issue_test.go
2026-07-14 22:50:05 +08:00
wbtiger e1d332c768 Merge PR #321: feat(issue): add journal and activity shortcuts
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/issue/issue_test.go
#	skills/gitlink-issue/SKILL.md
2026-07-14 22:50:04 +08:00
wbtiger 527b8c2e63 Merge PR #300: 新增批量重开、标签、指派、评论、导出、导入命令
# Conflicts:
#	README.md
#	README.zh-CN.md
#	shortcuts/issue/batch.go
#	shortcuts/issue/issue.go
#	skills/gitlink-issue/SKILL.md
2026-07-14 22:50:01 +08:00
wbtiger 07f9dbda28 Merge PR #86: fix: preserve issue metadata on update
# Conflicts:
#	shortcuts/issue/issue.go
#	shortcuts/issue/issue_test.go
2026-07-14 22:49:59 +08:00
wbtiger 28ee32dbaa Merge PR #150: 新增 Issue 批量导出命令 2026-07-14 22:49:59 +08:00
wbtiger 31428855ce Merge PR #163: Add complete issue comment management shortcuts
# Conflicts:
#	shortcuts/issue/issue_test.go
2026-07-14 22:49:59 +08:00
wbtiger 9ca5027d7c Merge pull request 'fix(issue): 修复详情缺失并保护更新元数据' (#205) from Mengz/gitlink-cli:mengz/issue-detail-update-safeguards into master 2026-07-14 22:28:57 +08:00
wbtiger c5f0a02192 Merge pull request 'feat(issue): add +comments, +comment-edit, +comment-delete' (#384) from Taoyouce/gitlink-cli:feat/issue-comment-crud into master 2026-07-14 22:22:48 +08:00
wbtiger 4e6cc86343 Merge pull request #412: feat(issue): 新增 issue +delete 单议题删除
# Conflicts:
#	shortcuts/issue/issue_test.go
2026-07-14 21:57:26 +08:00
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
Taoyouce a36e9c92c3 feat(issue): add issue +delete with --yes confirmation
Single-issue deletion via DELETE /api/v1/:owner/:repo/issues/:number.
The existing +batch-delete requires repo manager permissions and global
database IDs; +delete works for the issue author using the web issue
number. Destructive, so it refuses to run without --yes.

Includes en/zh i18n keys, README examples, and unit tests.
Production-verified on gitlink.org.cn (create -> delete -> 404 view).
2026-07-10 11:39:12 +00: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
1os21ka23r9navae6mrro 443b135f47 feat(issue): add +comments, +comment-edit, +comment-delete
Completes the journal (comment) lifecycle for issues. The CLI could
only create comments; the v1 journals endpoints also support listing,
updating, and deleting:

- issue +comments -n <num>: list journals with the server's filters
  (--keyword, --category comment|operate, paging)
- issue +comment-edit -n <num> -c <journal-id> -b <text>
- issue +comment-delete -n <num> -c <journal-id>

--comment-id is integer-validated before any API call.

Production-verified full lifecycle on gitlink.org.cn: create ->
list (count reflects it) -> edit -> 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:39:25 +00:00
1os21ka23r9navae6mrro b08d3d04a8 feat(issue): support threaded replies via --reply-to and +comment-replies
- issue +comment --reply-to <id>: reply to an existing comment; the
  server requires both parent_id and reply_id, so both are set
- issue +comment-replies: list a comment's replies via the
  children_journals endpoint with --page/--limit

Production-verified: parent -> reply -> list replies -> delete
round-trip on a real issue. 3 new unit tests and bilingual docs.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 13:56:44 +00:00
1os21ka23r9navae6mrro 029622ff52 feat(issue): add +comments, +comment-edit, +comment-delete
Completes issue comment CRUD on top of the existing issue +comment by
covering the v1 journals endpoints (index/update/destroy):

- issue +comments: list comments with --category/--keyword filters and
  --page/--limit pagination
- issue +comment-edit: PATCH a journal's notes by --comment-id
- issue +comment-delete: DELETE a journal by --comment-id

--comment-id is validated as an integer before any API call.

Production-verified against gitlink.org.cn: full create -> list ->
edit -> delete round-trip on a real issue. Includes 6 unit tests,
bilingual README examples, and en-US/zh-CN i18n keys.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 13:43:32 +00: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
NeeNe a5b8cb448d feat(issue): add journal and activity shortcuts 2026-07-02 19:16:19 +08:00
weidongde 1b6d8733d1 feat(issue): 新增批量重开、标签、指派、评论、导出、导入命令
新增 6 个 Issue 批量操作快捷命令:
- batch-reopen: 按Issue编号批量重新开启已关闭的Issue
- batch-label: 按API ID批量添加/移除Issue标签
- batch-assign: 按API ID批量指派/取消指派负责人
- batch-comment: 批量为多个Issue添加评论
- batch-export: 导出Issue到CSV/JSON文件,支持多种过滤条件
- batch-import: 从CSV文件批量创建Issue

所有命令均支持 --dry-run 预览模式。包含单元测试和更新的Skill文档。
2026-06-26 14:14:22 +08:00
Mengz 5cb871751c feat: 新增 Issue 批量导出命令 2026-06-22 12:54:18 +08:00
Mengz 0fdbd29706 feat(issue): 完善评论管理快捷命令 2026-06-22 12:54:18 +08:00
Mengz cea318d179 feat: 新增 Issue 批量导出命令 2026-06-22 12:44:24 +08:00
Mengz 2367048b6f feat(issue): 完善评论管理快捷命令 2026-06-22 12:36:01 +08:00
wangyue789 0703d3eba9 feat(issue): add batch maintenance shortcuts 2026-06-15 08:21:10 +08:00
wangyue789 d0f7c15793 feat(journal): add issue and PR comment shortcuts 2026-06-15 08:04:43 +08:00
Mengz 4145b671bc feat(issue): 增加批量评论与批量更新能力 2026-06-12 13:06:04 +08:00
Mengz 0a5bad01c8 fix(issue): 修复详情缺失并保护更新元数据 2026-06-10 19:33:56 +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
fsafasff ef79293956 fix: preserve issue metadata on update 2026-05-29 12:03:36 +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