Commit Graph

35 Commits

Author SHA1 Message Date
nudt_zk ea86b2b5a8 Merge pull request 'workflow的skill增加' (#25) from zk_branch into master 2026-07-06 12:15:51 +08:00
Donkey_kevin 4f3ae280b7 feat(workflows): add workflow skill system and fix batch commands
- Fix batch-label: use issue_tag_ids instead of tracker_id
- Fix parseTracker: support Chinese label names (缺陷/功能/疑问 etc.)
- Add workflow skill menu (workflows/SKILL.md) with 5 automation options
- Add workflow reference files: community-ops, contributor-growth, multi-repo
- Fix PowerShell scripts: Invoke-GL array syntax, remove ConvertFrom-Json
- Fix wiki +create flag from --body to --content
- Update contributor-growth doc with known issues and field corrections
- Add contributor leaderboard HTML report

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-02 16:17:15 +08:00
nudt_zk b2b0336236 Merge pull request '1' (#24) from zk_branch into master 2026-07-02 15:39:07 +08:00
Donkey_kevin ecf16b379d feat(workflows): add PowerShell scripts and refactor workflow Skill
- Add 4 PowerShell workflow scripts for cross-platform automation:
  - 01-community-ops.ps1: Issue auto-classify, assign, weekly report, release notes
  - 03-project-init.ps1: One-click project init with README, CONTRIBUTING, CI guide, issues, branch protection, release
  - 04-multi-repo-collab.ps1: Cross-repo dashboard with HTML output and coordinated release
  - 05-contributor-growth.ps1: Contributor scoring (AHP), HTML report, Wiki, badge awards
- Add workflows/lib/common.psm1 shared PowerShell module
- Refactor gitlink-workflow SKILL.md to focus on AI-powered code review (workflow 2)
- Retain original .sh scripts alongside new .ps1 scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 23:52:17 +08:00
狗gogo 64b8dabb50 fix(user): user +info 改用绝对路径 /users/:login,避免 URL 拼接歧义
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-01 15:37:16 +08:00
狗gogo b1bf96141c feat: add repo batch-delete, unify api error envelope, harden wiki handling
- repo: 新增 `+batch-delete` shortcut(--names / --from CSV / --dry-run),
  补齐 batch-create / batch-update / batch-delete 三件套
- api: 新增 `--body-file` 解决 PowerShell 调用 .exe 时剥离内嵌引号的问题;
  JSON 解析、参数冲突、读文件失败、网络错误统一按 envelope 输出,
  便于 --format json + jq 自动化解析
- wiki: unwrapGatewayResponse 接受全部 HTTP 2xx(修复 DELETE 返回 204 被误判失败);
  错误改返回 *clierrors.CLIError 让 envelope 输出生效;fetchPageContent 自动重试
  ".-" 后缀(GitLink 后端给 sub_url 加后缀导致 GET 404);outputWithDecodedContent
  解码 base64 字段为明文提升 agent 可读性;wiki +delete 先解析实际 pageName 再
  DELETE,删除后强制 GET 验证并返回结构化结果

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-01 13:07:29 +08:00
狗gogo 3e867d23f8 refactor: improve error handling, output formatting, and wiki/webhook shortcuts
- Add dedicated error_print.go for centralized error output
- Enhance formatter with better table/json/yaml rendering
- Add unit tests for output formatter
- Improve runner with cleaner error propagation
- Update globals and root command configuration
- Refine webhook and wiki shortcut implementations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-27 19:16:53 +08:00
camelliamc 601e566bac docs(skills): 同步更新 repo/issue/wiki skill 文档,补全新增 shortcut 命令 2026-06-23 21:16:06 +08:00
zzx-coder 11ab6ba049 Merge pull request '新增skill' (#14) from zk_branch into master 2026-06-16 09:40:44 +08:00
Donkey_kevin 58c9f77b6b Add --force flag to onboard +welcome for re-adding comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-15 19:27:24 +08:00
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
camelliamc 9028dbb376 test(wiki): 补充 callWikiAPI、runLint、resolveContent 的单元测试
在 RuntimeContext 中新增 GatewayHTTPClient 字段以支持测试中注入 mock HTTP client。
2026-06-14 22:34:03 +08:00
camelliamc 8fef2f3642 fix(wiki):解决wiki管理中gateway硬编码的问题 2026-06-14 21:33:59 +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