Commit Graph

45 Commits

Author SHA1 Message Date
wbtiger b8589dc93c Merge PR #103: feat: 新建 pm 模块,添加 6 条项目管理命令
# Conflicts:
#	cmd/alias/alias.go
#	cmd/alias/alias_test.go
#	cmd/browse/browse.go
#	cmd/browse/browse_test.go
#	cmd/root.go
#	internal/client/client.go
#	internal/client/client_test.go
#	shortcuts/notification/notification.go
#	shortcuts/pm/pm.go
#	shortcuts/pm/pm_test.go
#	shortcuts/pr/pr.go
#	shortcuts/register.go
#	shortcuts/repo/repo_test.go
#	shortcuts/user/user.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
#	skills/gitlink-ci/SKILL.md
#	skills/gitlink-code-review/SKILL.md
#	skills/gitlink-commit-quality/SKILL.md
#	skills/gitlink-compliance/SKILL.md
#	skills/gitlink-contributor-insight/EXAMPLES.md
#	skills/gitlink-contributor-insight/SKILL.md
#	skills/gitlink-contributor-insight/examples/jiangtx-gitlink-cli.md
#	skills/gitlink-insight/SKILL.md
#	skills/gitlink-issue-triage/SKILL.md
#	skills/gitlink-notification-digest/EXAMPLES.md
#	skills/gitlink-notification-digest/SKILL.md
#	skills/gitlink-org/SKILL.md
#	skills/gitlink-repo/SKILL.md
#	skills/gitlink-shared/SKILL.md
#	skills/gitlink-user/SKILL.md
#	skills/gitlink-workflow/SKILL.md
2026-07-14 22:50:21 +08:00
wbtiger b2d9c504eb Merge PR #338: feat(list): issue/pr/branch/release +list 新增 --all 自动翻页(翻页助手
# Conflicts:
#	cmd/api/api.go
#	internal/client/pagination.go
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/branch/branch.go
#	shortcuts/commit/commit.go
#	shortcuts/commit/commit_test.go
#	shortcuts/issue/issue.go
#	shortcuts/label/label.go
#	shortcuts/member/member.go
#	shortcuts/member/member_test.go
#	shortcuts/milestone/milestone.go
#	shortcuts/pr/pr.go
#	shortcuts/tag/tag.go
#	shortcuts/tag/tag_test.go
#	shortcuts/webhook/webhook.go
2026-07-14 22:50:19 +08:00
wbtiger ca17974d1f Merge PR #408: 提交pr
# Conflicts:
#	.gitignore
#	.golangci.yml
#	Makefile
#	cmd/root.go
#	internal/client/client.go
#	shortcuts/_template/template.go
#	shortcuts/branch/branch_test.go
#	shortcuts/ci/ci.go
#	shortcuts/ci/ci_test.go
#	shortcuts/common/types.go
#	shortcuts/file/file.go
#	shortcuts/file/file_test.go
#	shortcuts/issue/batch.go
#	shortcuts/issue/batch_test.go
#	shortcuts/issue/issue_test.go
#	shortcuts/label/label.go
#	shortcuts/label/label_test.go
#	shortcuts/member/member.go
#	shortcuts/member/member_test.go
#	shortcuts/milestone/milestone.go
#	shortcuts/milestone/milestone_test.go
#	shortcuts/org/org.go
#	shortcuts/org/org_test.go
#	shortcuts/pm/pm.go
#	shortcuts/pm/pm_test.go
#	shortcuts/pr/pr.go
#	shortcuts/pr/pr_test.go
#	shortcuts/register.go
#	shortcuts/register_test.go
#	shortcuts/release/release_test.go
#	shortcuts/search/search.go
#	shortcuts/search/search_test.go
#	shortcuts/user/user.go
#	shortcuts/user/user_test.go
#	shortcuts/wiki/wiki.go
#	shortcuts/wiki/wiki_test.go
#	skills/README.md
#	skills/gitlink-ci/SKILL.md
#	skills/gitlink-file/SKILL.md
#	skills/gitlink-issue/SKILL.md
#	skills/gitlink-label/SKILL.md
#	skills/gitlink-member/SKILL.md
#	skills/gitlink-org/SKILL.md
#	skills/gitlink-pm/SKILL.md
#	skills/gitlink-pr/SKILL.md
#	skills/gitlink-research-insight/SKILL.md
#	skills/gitlink-research-progress/SKILL.md
#	skills/gitlink-user/SKILL.md
#	skills/gitlink-wiki/SKILL.md
2026-07-14 22:50:17 +08:00
wbtiger a6b2841748 Merge PR #314: feat(repo,pr): add code history and batch file shortcuts
# Conflicts:
#	shortcuts/repo/repo.go
#	skills/gitlink-gatekeeper/SKILL.md
#	skills/gitlink-pr/SKILL.md
#	skills/gitlink-repo/SKILL.md
2026-07-14 22:50:09 +08:00
wbtiger 62c44bf7b4 Merge PR #142: 新增 PR 本地检出命令
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
#	shortcuts/pr/pr_test.go
#	skills/README.md
2026-07-14 22:50:07 +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 ab28113e1d Merge PR #383: feat(pr): add +commits and +check-merge
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
2026-07-14 22:50:03 +08:00
wbtiger 1567d96276 Merge PR #319: feat(pr): add merge readiness and branch helper shortcuts
# Conflicts:
#	internal/i18n/locales/en-US.json
#	internal/i18n/locales/zh-CN.json
2026-07-14 22:50:01 +08:00
wbtiger daf1ea4f97 Merge PR #370: feat(pr): add pr +checks showing CI build status for a pull
# Conflicts:
#	shortcuts/pr/pr.go
2026-07-14 22:50:00 +08:00
wbtiger 2c379e0d75 Merge PR #23: feat: support fork metadata in pr create 2026-07-14 22:50:00 +08:00
wbtiger 2bfc32cfab Merge PR #100: 查看指定时间范围的开发统计
# Conflicts:
#	shortcuts/pr/pr.go
2026-07-14 22:49:59 +08:00
wbtiger 45b76c485b Merge PR #164: Add pull request review comment management shortcuts
# Conflicts:
#	shortcuts/pr/pr.go
2026-07-14 22:49:55 +08:00
Surponess b1db102e9d 修改仓库内容 2026-07-10 10:55:03 +08:00
1os21ka23r9navae6mrro a0370fb96b feat(pr): add +commits and +check-merge
- pr +commits: list commits of a pull request
  (GET /pulls/:id/commits)
- pr +check-merge: pre-flight check_can_merge before creating a PR.
  Detects same-branch no-ops and existing duplicate merge requests,
  including the cross-fork case via --fork-project-id (which also
  sets is_original, matching the server's duplicate lookup).

Production-verified on gitlink.org.cn: commits listing, a
'can merge' pass, and duplicate detection that points at the
existing PR. 2 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:33:59 +00:00
林晨 (Leo Cheng) 5c2b309f38
feat(pr): add pr +checks showing CI build status for a pull request
Signed-off-by: 林晨 (Leo Cheng) <chengkelfan@qq.com>
2026-07-08 13:49:42 +08:00
laurencewannamaker ce8db5912e feat(pr): 新增 pr +commits 读 PR 提交列表(端点实测忽略分页参数)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 23:08:23 +00:00
laurencewannamaker 8958a686a6 feat(pr): 新增 pr +comments 读 PR 评论流(端点实测忽略分页参数,不暴露假分页 flag)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 22:58:58 +00:00
laurencewannamaker b82378bb4e feat(list): --all 自动翻页,翻页助手对齐生产 API 资源键包裹形状
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-05 22:05:58 +00:00
NeeNe 2138fb16d7 feat(pr): add merge readiness and branch helper shortcuts 2026-07-02 14:19:55 +08:00
NeeNe e20f80e26c feat(repo,pr): add code history file shortcuts 2026-07-02 12:25:38 +08:00
Mengz e4ed2d1b45 feat(pr): 新增审查评论管理快捷命令 2026-06-22 12:36:23 +08:00
wangyue789 d0f7c15793 feat(journal): add issue and PR comment shortcuts 2026-06-15 08:04:43 +08:00
Mengz 104162b480 fix(pr): 补齐 pr +view 的合并与关闭时间字段 2026-06-10 16:12:13 +08:00
Mengz 0736696877 fix: 保持 PR 创建空 body 兼容 2026-06-09 11:04:31 +08:00
Mengz f35225f097 fix: use url-safe base64 for pr compare 2026-06-09 11:03:03 +08:00
Mengz 442f0b9df6 feat: support fork metadata in pr create 2026-06-09 11:02:29 +08:00
Mengz f67f723f2a feat: 新增 PR 本地检出命令 2026-06-08 11:50:13 +08:00
Mengz 0b48ec90d8 fix: 修正 Issue 和 PR 列表筛选 2026-06-05 11:43:30 +08:00
wbtiger 83fe18f8c0 refactor: rename pr +close to pr +refuse
The `pr +close` shortcut called the `refuse_merge` API, which is
misleading — "close" suggests a benign operation, but the actual
behavior is to refuse/reject the pull request permanently.

Rename the shortcut to `pr +refuse` so the name matches the API
semantics, and add a warning in the docs that it must never be used
as a substitute for `pr +merge`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 23:20:32 +08:00
林迪文 9b08029643 merge: resolve client.go conflict, keep XML declaration fix 2026-06-03 08:58:40 +08:00
蒋天翔 afed2c9b7e feat: add pr commits/branches/check-merge shortcuts with tests
Add three new shortcuts to the pr module:
- commits: list commits in a pull request (v1 API)
- branches: list branches for PR creation
- check-merge: check if two branches can be merged

Each shortcut includes unit tests covering both success and HTTP error paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 08:41:39 +08:00
蒋天翔 fd2517f2f8 feat: add pr commits/branches/check-merge shortcuts with tests
Add three new shortcuts to the pr module:
- commits: list commits in a pull request (v1 API)
- branches: list branches for PR creation
- check-merge: check if two branches can be merged

Each shortcut includes unit tests covering both success and HTTP error paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 23:47:59 +08:00
wbtiger 49240b3c02 Merge pull request 'fix: pr +review now posts a journal comment alongside the formal review' (#98) from fix/pr-review-journal-sync into master 2026-06-02 22:08:07 +08:00
wbtiger edf2fc30b8 fix: pr +review now posts a journal comment alongside the formal review
The GitLink API has two separate systems for PR feedback:
- POST /pulls/:id/reviews creates a formal review (approve/reject/comment)
  that only appears in the "Reviews" panel
- POST /issues/:issueID/journals creates a comment visible in the main
  PR conversation tab

Previously, `pr +review` only called the reviews API, so the review
content was invisible to the contributor in the main PR conversation.
Now it also posts a journal summary so the review is visible where
contributors expect to see it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 22:03:04 +08:00
whzy 37dfd2e2e2 feat(i18n): add CLI localization foundation 2026-06-01 17:33:10 +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
wbtiger 5369ce65bb Merge pull request 'fix(pr): include closed time in view output' (#49) from dtwdtw/gitlink-cli:fix/issue-14-pr-closed-at into master 2026-05-27 00:52:20 +08:00
wbtiger 898b7f59d1 feat: add milestone, compare, pr reopen shortcuts and api enhancements (#45)
- milestone shortcuts: list, create, view, update, delete, close, reopen
- compare shortcuts: view, files (compare branches/tags/commits)
- pr +reopen: reopen closed pull requests
- api: add --body-file and --body-stdin for reading JSON from file/stdin
- comprehensive tests for all new shortcuts

Co-authored-by: wangyue111 <wangyue111>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:44:39 +08:00
wbtiger 36249f3087 feat: add PR closed time and repo README shortcuts (#49, #52)
PR #49 (dtwdtw): enrich PR view with closed_at from issue journals
- Fetches close timestamp for closed/rejected PRs
- Skips extra API call for open PRs
- 2 new tests

PR #52 (dtwdtw): add repo +readme shortcut
- Fetches README content with optional --ref and --path params
- normalizeAPIPath prevents duplicate /api prefix in client
- 4 new tests (3 client + 1 repo)

Co-authored-by: dtwdtw <dtwdtw>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:35:31 +08:00
fsafasff 7f0f332f77 fix(pr): include closed time in view output 2026-05-26 17:11:33 +08:00
Tiger 49cd590227 Merge PR #26: feat(pr): add review shortcuts
Resolved conflicts between PR #24 (+versions, +version-diff) and PR #26
(+reviews, +review). Unified prReviewsPath() to use existing prV1Path() helper.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 22:12:01 +08:00
wangyue789 fbea42ecce feat(pr): add review shortcuts 2026-05-21 17:20:15 +08:00
wangyue789 e85dd367d8 feat(pr): add patchset version shortcuts 2026-05-21 11:58:47 +08:00
wbtiger 20c3a4ff62 feat(pr): add pr +comment shortcut
Add a convenience command to comment on pull requests directly,
without needing to look up the underlying issue ID first.

Internally resolves the PR's issue ID via pr +view, then posts
to the issues journals API.
2026-05-14 14:23:04 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00