Commit Graph

23 Commits

Author SHA1 Message Date
Donkey_kevin be837d4f8e Improve onboard template: per-issue content-aware welcome comments
- fetchIssueDetail now gets both subject and description
- renderComment substitutes {subject}, {description}, {number}, {login}
- defaultTemplate includes issue summary for targeted guidance
- dry-run preview shows the full rendered comment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-15 19:21:42 +08:00
Donkey_kevin 0ed9dcabfc Add onboard, compliance, and contrib shortcuts with skill docs
- onboard: new contributor onboarding with --issues/--tag support
- compliance: license audit, secret scan, PII check, sensitive vocab scan
- contrib: contribution report generation
- Update register.go to register all three shortcut groups
- Add skills/gitlink-onboard and skills/gitlink-compliance skill docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-15 19:11:01 +08:00
狗gogo 0be1db712a Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-04 12:34:56 +08:00
狗gogo 3edc27fac9 Update documentation and user functionality
- Updated design documentation with latest features
- Updated API reference documentation
- Enhanced user shortcuts functionality
- Added new gitlink-cli binary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 12:34:51 +08:00
zkevin 8f420e5ef2 fix: update RequireArg calls to match new 2-arg signature from master merge
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 12:12:42 +08:00
zkevin d122b95d6c Merge branch 'master' into zk_branch
- resolve conflicts in register.go, release/release.go, repo/repo.go, SKILL.md
- keep milestone/team/webhook registrations from zk_branch
- incorporate batch_create/batch_update from master

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 11:47:40 +08:00
camelliamc 89afa968fd fix:统一错误提示优化+Issue标签ID动态获取 2026-06-04 10:36:41 +08:00
zkevin 36b8a912a5 feat: add label/review/milestone/team shortcuts, merge master updates
- issue: add label add/remove/list subcommands, add reopen command
- pr: add approve/request-changes/reviews subcommands
- org: merge update/delete from master, add invite/remove-member
- repo: add update command
- release: add update command, clean up comments
- search: add issues search
- register: add milestone, team, webhook modules

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 23:37:40 +08:00
狗gogo 5fd2ad0c6d Update webhook functionality and fix authentication issues
- Updated webhook shortcuts with enhanced functionality
- Fixed authentication issues in login.go and auth.go
- Improved repo context resolution
- Added npm package configuration
- Updated binary build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 23:19:43 +08:00
狗gogo 789c32cc64 Add webhook and wiki management features
- Added webhook shortcuts and skill
- Added wiki management shortcuts and skill
- Updated workflow examples and references
- Enhanced skills documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 10:17:47 +08:00
狗gogo 50c6882a60 fix: 添加缺失的tagIDs和parseLabel定义到batch.go 2026-06-02 07:19:37 +08:00
camelliamc a3b6b1c11c 更新文档 2026-06-01 21:31:17 +08:00
Donkey_kevin 466a7ab181 feat: add wiki +lint command and dry-run support for all write operations
- Add wiki +lint: check empty pages, missing H1, short content, dead links, broken images
- Fix lint to use sub_url for fetching page content instead of title
- Skip system pages (_Sidebar, _Footer, _Header) in lint checks
- Add CHANGELOG.md for wiki module
- Add dry-run support to branch, ci, issue, org, pr, release, repo commands
- Add batch operations for org and repo members
- Add gitlink-wiki skill definition

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-31 17:11:39 +08:00
camelliamc e9b4362683 fix:增加相关test.go文件 2026-05-28 16:59:32 +08:00
camelliamc bb0950d082 feat:批量仓库管理 2026-05-28 16:04:37 +08:00
camelliamc 59c5f8f43c 新增issue批量操作 2026-05-23 16:38:20 +08:00
camelliamc 5702ce9959 增加wiki管理的shortcut 2026-05-23 08:30:29 +08:00
wbtiger 6ff7384f99 fix(branch): URL-encode branch name in unprotect, add +unprotect to Skill
- shortcuts/branch/branch.go: unprotect 使用 url.PathEscape 编码分支名(含 / 的分支名)
- skills/gitlink-branch/SKILL.md: 新增 +unprotect 命令(参数、示例、Workflow)
- skills/gitlink-branch/examples/branch-workflow.md: 注意事项补 +unprotect 说明
- 注意:含 / 的分支名 unprotect 受限于 Gitea API 路由,需通过 Web 操作
2026-05-17 12:19:04 +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
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