Commit Graph

108 Commits

Author SHA1 Message Date
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
Donkey_kevin 012c197ee6 fix(workflows): make PowerShell scripts compatible with PS 5.1
- Replace ?? operator with if/else for Windows PowerShell 5.1 compatibility
- Remove Chinese characters to avoid encoding issues
- Use string concatenation instead of complex expressions in here-strings
- Update common.psm1 to remove PS 7+ syntax

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 23:59:45 +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
Donkey_kevin a3c433e697 feat(workflows): add 5 workflow scripts with bug fixes
Add workflow automation scripts for GitLink CLI:
- 01-community-ops: issue triage, weekly reports, release notes
- 02-code-quality-gatekeeper: PR review, quality scoring, auto-merge
- 03-project-init: repo creation, branch protection, wiki setup
- 04-multi-repo-collab: cross-repo dashboard, health monitoring
- 05-contributor-growth: AHP-weighted scoring, HTML reports, wiki publish

Fixes applied during testing:
- common.sh: fix SIGPIPE error in gl_check (use here-string instead of pipe)
- common.sh: add WinGet Links to PATH for jq availability on Windows
- 05-contributor-growth: fix pull_request_number → pull_request_id
- 05-contributor-growth: fix null total_addition/total_deletion (sum from files)
- 05-contributor-growth: fix wiki publish 400 error (use timestamp in title)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 12:11:38 +08:00
Donkey_kevin a7513cf683 Merge branch 'zk_branch' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli into zk_branch
# Conflicts:
#	skills/README.md
2026-06-30 23:42:11 +08:00
zkevin 93d695d1b3 Add gitlink-code-insight skill: interactive dashboard for all shortcuts
New skill that generates an HTML dashboard showcasing all 69 gitlink-cli
shortcuts organized into 14 categories with search and collapsible UI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-24 09:59:12 +08:00
mengcheng 36684f039b Merge pull request 'feat(health):项目健康度报告由 markdown 格式改成 HTML 文件' (#19) from mc_branch into master 2026-06-24 00:21:03 +08:00
camelliamc 2535a313f8 Merge branch 'master' into mc_branch 2026-06-24 00:20:33 +08:00
camelliamc 1d70aadf05 feat(health):项目健康度报告由 markdown 格式改成 HTML 文件 2026-06-24 00:20:02 +08:00
zzx-coder cd34efe773 Merge pull request '新增三个skills' (#18) from zzx_branch into master 2026-06-24 00:04:35 +08:00
狗gogo de6f94351e feat(skills): add gitlink-stale skill for stale issue/PR detection
Add a new AI Agent skill for detecting and managing stale issues and PRs:

- SKILL.md - main skill guide
- README.md - overview documentation
- examples/ - AI judgment demo, PR stale workflow, weekly cleanup workflow
- references/ - scan, judge, actions, and exempt rules

The skill automates stale detection with AI-powered judgment and supports
weekly cleanup workflows with configurable exemption rules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 00:03:43 +08:00
狗gogo d17b4f0383 Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-23 23:45:38 +08:00
mengcheng be0d600d56 Merge pull request 'docs(skills): gitlink-changelog 发行版条目新增作者标注' (#16) from mc_branch into master 2026-06-23 22:38:57 +08:00
camelliamc 26fa5cf6e4 Merge branch 'master' into mc_branch 2026-06-23 22:36:18 +08:00
camelliamc 7a30a03836 docs(skills): gitlink-changelog 发行版条目新增作者标注 2026-06-23 22:35:29 +08:00
mengcheng 5d3f68f3a5 Merge pull request 'feat(skills): 新增 gitlink-faq skill + 补全 repo/issue/wiki 的skill 文档' (#15) from mc_branch into master
Release / release (push) Failing after 1m24s Details
2026-06-23 21:21:50 +08:00
camelliamc 601e566bac docs(skills): 同步更新 repo/issue/wiki skill 文档,补全新增 shortcut 命令 2026-06-23 21:16:06 +08:00
camelliamc 69a820cccb 新增 gitlink-faq skill — Issue 知识库 2026-06-23 20:32:17 +08:00
zkevin dc5425690d Add gitlink-code-insight skill: interactive dashboard for all shortcuts
New skill that generates an HTML dashboard showcasing all 69 gitlink-cli
shortcuts organized into 14 categories with search and collapsible UI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 15:56:57 +08:00
狗gogo d804a01e8a Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-16 17:02:39 +08:00
zzx-coder 11ab6ba049 Merge pull request '新增skill' (#14) from zk_branch into master 2026-06-16 09:40:44 +08:00
狗gogo 5a590f6850 feat(skills): add gitlink-code-review and gitlink-issue-triage skills
Add two new AI Agent skills for automated GitLink workflows:

- gitlink-code-review: automated PR/code review with quality and security analysis
- gitlink-issue-triage: automated issue classification (tracker/priority/labels)

Each skill includes SKILL.md, README.md, examples, and references.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 08:54:56 +08:00
狗gogo 1907e80c34 Merge remote master with local changes: resolve README conflict 2026-06-16 08:50:13 +08:00
狗gogo d18de0437a Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-16 08:47:53 +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
mengcheng 4145897dcf Merge pull request '修复增加加wiki管理shortcut命令遗留下来的问题' (#13) from mc_branch into master 2026-06-14 22:43:27 +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
camelliamc 0a6e0f0b94 refactor(client): 提取 shouldAppendJSONSuffix 方法,保留 raw 路径特例 2026-06-14 21:19:03 +08:00
mengcheng 70dc7f2bad Merge pull request 'feat(skills): 新增 gitlink-changelog 和 gitlink-health 两个独立skill' (#12) from mc_branch into master 2026-06-14 19:42:57 +08:00
camelliamc 6583d09f04 feat(skills): 新增 gitlink-changelog 和 gitlink-health 两个独立skill 2026-06-14 19:41:52 +08:00
狗gogo 198c17ea08 test webhook trigger 2026-06-04 15:17:56 +08:00
狗gogo 7ed6fd565a fix: 修复流水线验证部署节点的参数解析错误
- 将verify_deployment_0节点的ssh_cmd从'gitlink-cli version && ls -lh /opt/gitlink-cli/gitlink-cli'简化为'gitlink-cli version'
- 修复原因:&&符号在GitLink流水线参数解析器中被当作特殊字符处理,导致"未找到对应的参数"错误
- 简化后的验证命令足以确认部署成功

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 15:03:39 +08:00
zzx-coder 740a47f865 refactor: .devops/gitlink-cli-autodeploy.yml 2026-06-04 15:02:59 +08:00
zzx-coder dc20c21790 Merge pull request '改进安装功能,新增卸载功能' (#11) from zzx_branch into master 2026-06-04 14:47:46 +08:00
狗gogo 1e36747b00 Add uninstall functionality and update installation scripts
- Added uninstall scripts for multiple platforms (install/uninstall.sh, .ps1)
- Updated installation documentation with INSTALL.md and UNINSTALL.md
- Enhanced npm package with uninstall and update scripts
- Improved README files with latest changes
- Updated install.sh with better functionality

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 14:43:42 +08:00
zzx-coder b483043a82 Merge pull request '修改文档,修改user.go查找url逻辑' (#10) from zzx_branch into master 2026-06-04 12:42:06 +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 682dbf8619 feat: add one-line install script, remove Go/npm dependency for end users
- Add install.sh: auto-detect platform, download prebuilt binary, install skills
- Bump npm package to v0.2.0
- Update README (EN/CN) with curl-based one-line install as primary method
- No Go, no npm required for standard installation

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 11:54:50 +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
mengcheng f3ab651a7b Merge pull request 'fix:统一错误提示优化+Issue标签ID动态获取' (#9) from mc_branch into master 2026-06-04 10:54:00 +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
zzx-coder 297a2ccbbe Merge pull request '修改webhook功能中的相关代码,完善其功能' (#7) from zzx_branch into master 2026-06-03 23:21:30 +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 813cd9a285 测试webhook触发 2026-06-03 22:15:50 +08:00