Commit Graph

91 Commits

Author SHA1 Message Date
wbtiger f7263cc466 chore: add golangci-lint config and fix lint issues
- Add .golangci.yml with 8 essential linters (errcheck, govet,
  ineffassign, staticcheck, unused, errorlint, gosec, misspell)
- Fix real bugs: errors.As, %w wrapping, nil map check, dead code,
  unnecessary conversion, unused parameters
- Add `make lint` target, include it in `make check` pipeline
- Update pre-commit hook to run lint step

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:37:45 +08:00
wbtiger 4631b81e5c style: fix gofmt alignment in root.go and register.go 2026-05-29 23:59:40 +08:00
wbtiger 6ded4851cb ci: add local checks (make check, pre-commit hook) and Gitea Actions workflow skeleton 2026-05-29 23:58:51 +08:00
wbtiger a4c93802a7 ci: add PR checks workflow (build, test, vet, fmt) 2026-05-29 23:57:44 +08:00
wbtiger 2f8b987c2c Merge pull request 'feat(issue): add user lookup shortcuts' (#44) from wangyue111/gitlink-cli:feat/issue-user-shortcuts into master 2026-05-27 01:14:31 +08:00
wbtiger c89e398b46 Merge pull request 'feat(cli): add productivity shortcuts and API body inputs' (#45) from wangyue111/gitlink-cli:feat/cli-productivity-shortcuts into master 2026-05-27 01:08:49 +08:00
wangyue789 00c753b421 feat(pr): add reopen shortcut 2026-05-27 01:08:54 +08:00
wangyue789 2421c1f0c8 feat(api): support body input files 2026-05-27 01:08:54 +08:00
wbtiger 6ce72f07b2 Merge pull request 'feat(member): add repository member shortcuts' (#46) from puygob236/gitlink-cli:feat/member-shortcuts into master 2026-05-27 01:06:12 +08:00
wbtiger 419388f11e merge: resolve conflicts with upstream/master 2026-05-27 01:06:27 +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 27117c0f16 Merge pull request 'feat(repo): add README shortcut' (#52) from dtwdtw/gitlink-cli:fix/issue-17-api-prefix into master 2026-05-27 00:52:04 +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
wbtiger 7bcba5aed8 feat(member): add repository member shortcuts (#46)
Add member command group with 8 shortcuts:
- +list, +add, +batch-add, +remove, +role
- +invite-link, +invite-info, +accept-invite

Batch add supports --dry-run, CSV file input, and partial failure
reporting. 12 tests included.

Co-authored-by: Jiachen Li (puygob236) <noreply@gitlink.org.cn>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 00:24:15 +08:00
wbtiger f888dd39ed Merge pull request 'feat(workflows): add community ops automation workflow example' (#32) from puygob236/gitlink-cli:community-ops-automation-pr into master 2026-05-26 23:58:11 +08:00
fsafasff 65cd7f6199 feat(repo): add readme shortcut 2026-05-26 17:54:33 +08:00
fsafasff 7f0f332f77 fix(pr): include closed time in view output 2026-05-26 17:11:33 +08:00
wbtiger 42bc83295a Merge pull request '新增 workflow Shortcut 命令,支持 Issue 分诊、PR 摘要与仓库报告' (#29) from muel/gitlink-cli:workflow-agent-suite into master 2026-05-26 16:28:27 +08:00
wbtiger 6b355e19e2 fix(workflow): improve input mode detection and error hint
- hasLocalTriageInput now also detects triage-specific flags (--body,
  --number, --author, --url, --labels) to enter local input mode.
- hasLocalHealthInput now checks all health-related flags to prevent
  invalid values like --open-issues=abc from silently falling through
  to remote fetch instead of being validated.
- Remote fetch failure in +triage now includes a hint suggesting
  --title or --from for local analysis.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 16:28:28 +08:00
whzy b3f139801b docs: trim materials for official PR 2026-05-26 16:28:28 +08:00
whzy 29dee2697e chore: ignore local gitlink-cli binary 2026-05-26 16:28:28 +08:00
whzy be8327822a docs: remove continuation file from PR draft 2026-05-26 16:28:28 +08:00
whzy b0327204d0 docs: update final submission checklist placeholders 2026-05-26 16:28:28 +08:00
whzy 018c08e178 docs: align workflow agent competition materials 2026-05-26 16:28:28 +08:00
whzy 2dc230430b docs: add competition submission materials 2026-05-26 16:28:28 +08:00
whzy a904f48099 Add workflow repo-report command 2026-05-26 16:28:28 +08:00
whzy 7730347253 Add workflow pr-summary command 2026-05-26 16:28:00 +08:00
whzy 5673a109a4 Add workflow agent triage and health commands 2026-05-26 16:28:00 +08:00
Jiachen Li 46799d8e56 fix(member): report batch-add partial failures 2026-05-25 21:16:04 +08:00
Jiachen Li 1feb6a85fc feat(member): add repository member shortcuts 2026-05-25 13:42:41 +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
ljc0426 9ebed898ac feat(workflows): add community ops automation example 2026-05-24 14:34:47 +08:00
wbtiger a46e06b78a Merge pull request 'fix: normalize issue +list output to use project-level issue numbers' (#31) from fix/issue-list-normalize-ids into master 2026-05-24 01:04:31 +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
Tiger cbe9186c5c Style contributors avatars in horizontal row with gap
Use flex layout with 20px gap (half avatar width) and rounded avatars.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:34:26 +08:00
Tiger 2fb99ee0cc Add contributors section to READMEs
List all 9 contributors by PR count (desc), showing avatars and
GitLink IDs, placed before "Why gitlink-cli" section.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 23:31:47 +08:00
Tiger 4bfbfc6e8f Replace PR #20 webhook with PR #22 improved implementation
- Use v1 API paths for all webhook endpoints (fixes view/test returning HTML/404)
- Add +tasks command for listing webhook delivery tasks
- Add webhook event validation (10-event whitelist)
- Add webhook type validation (10-type whitelist)
- Add content-type and http-method validation
- Fix update to preserve unspecified fields via fetch-and-merge
- Add event deduplication in parseWebhookEvents
- Add 9 comprehensive unit tests (up from 3)
- Use --http-method flag (maintains backward compatibility with PR #20)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 22:45:34 +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
wbtiger 2b64b8efa7 Merge pull request 'feat(pr): add patchset version shortcuts' (#24) from wangyue111/gitlink-cli:feat/pr-patchset-versions into master 2026-05-23 21:45:41 +08:00
wbtiger 9b6268cc47 Merge pull request 'feat: add webhook shortcut group' (#20) from Mengz/gitlink-cli:codex/webhook-shortcut into master 2026-05-23 21:44:22 +08:00
wbtiger 255410181f Merge pull request 'feat(skills): add gitlink-code-review, gitlink-insight, gitlink-compliance Skills' (#28) from Leo77/gitlink-cli:master into master 2026-05-23 21:27:42 +08:00
wbtiger d0a817c5a8 Merge pull request 'feat(skills): 新增检查提交信息是否规范的的skill : gitlink-commit-quality' (#27) from yangsai/gitlink-cli:feat/commit-quality into master 2026-05-23 21:26:21 +08:00
wbtiger ba78cb75b2 Merge pull request 'feat(skills): 新增自动发版的skill : gitlink-release-auto' (#25) from yangsai/gitlink-cli:feat/gitlink-release-auto into master 2026-05-23 21:24:33 +08:00
wangyue789 fbea42ecce feat(pr): add review shortcuts 2026-05-21 17:20:15 +08:00
yangsai01 67059ec1b2 feat(skills): add skills gitlink-release-auto 2026-05-21 17:00:55 +08:00
yangsai01 c57bd280c5 feat(skills): add skills gitlink-commit-quality 2026-05-21 15:43:35 +08:00
wangyue789 e85dd367d8 feat(pr): add patchset version shortcuts 2026-05-21 11:58:47 +08:00
2403_89190320 a302f2a530 docs(skills): add REFERENCE.md for all 3 Skills 2026-05-21 02:08:39 +08:00