Commit Graph

153 Commits

Author SHA1 Message Date
camelliamc 7079bfae64 修改测试脚本 2026-07-12 18:31:12 +08:00
camelliamc a02e3a53fd update README 2026-07-11 00:39:35 +08:00
camelliamc 8a2c4d3bd9 实现多仓库协同自动化工作流(04)
串联 repo/issue/pr/release +list 命令完成端到端任务链:
逐仓库采集数据 → 对齐 gitlink-health 的健康度评分 → 生成中文 HTML
看板 → 协调发版(支持真 --dry-run 预览)
2026-07-10 20:54:32 +08:00
mengcheng e893efa817 Merge pull request '完成项目一键初始化工作流(03-project-init)' (#35) from mc_branch into master 2026-07-10 18:39:22 +08:00
camelliamc 3988802e2c 完成项目一键初始化工作流(03-project-init):重构为文件模式生成README/LICENSE/CI配置+里程碑+Issue+分支保护+Release
- README/LICENSE/CONTRIBUTING/.gitlink-ci.yml 生成在仓库内,而非Wiki页面
- 新增里程碑创建步骤、欢迎Issue
- README中文标题(快速开始、环境要求、安装、使用、测试)
- git clone/push免密认证、git作者行内传参
- 修复CRLF换行符、反引号命令替换等问题
- 同步更新PowerShell版本(03-project-init.ps1)
- 更新workflows文档和SKILL菜单
2026-07-10 18:37:19 +08:00
zzx-coder 5b3af9d978 Merge pull request '完成两条自动化工作流:社区运营自动化 + 代码质量看门人' (#34) from mc_branch into master 2026-07-10 11:10:01 +08:00
camelliamc 9f0973f80a 完成两条自动化工作流:社区运营自动化 + 代码质量看门人
工作流一(社区运营自动化):
- Webhook 监听 Issue 创建 → 自动关键词分类 → 打标签 + 分配责任人
- 修复 assigner_ids 字段名(原 assigned_to_id 已被后端静默忽略)
- 修复标签 ID 从项目 issue_tags API 动态获取(原 tracker ID 与 issue_tag ID 不匹配)
- 新增 Windows PowerShell 版本脚本

工作流二(代码质量看门人):
- Webhook 监听 PR 创建 → 数据采集 → AI 代码审查 → 本地 CI → 冲突检测 → 自动合并
- 新增 02a-pr-gatekeeper.sh 核心编排脚本(603 行)
- 新增 Windows PowerShell 版本
- Webhook 监听器增加 pull_request 事件路由
2026-07-10 10:49:48 +08:00
mengcheng b476963fde Merge pull request '增加部分代码注释' (#32) from mc_branch into master 2026-07-08 15:20:25 +08:00
camelliamc 007bbe4da3 增加部分代码注释 2026-07-08 15:19:33 +08:00
zzx-coder e26160a335 Merge pull request '修改流水线相关信息处理' (#31) from zzx_branch into master 2026-07-08 10:29:59 +08:00
狗gogo 80c7554fd8 Merge origin/master into zzx_branch, local wins on conflicts 2026-07-08 10:29:42 +08:00
狗gogo 17a876b0bd Update community-ops workflows and demo index on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 10:29:15 +08:00
zzx-coder dde0a6d0b4 Merge pull request '修改脚本中获取网页数据的渠道与方法' (#30) from zzx_branch into master 2026-07-08 09:14:53 +08:00
狗gogo d19b4c2722 Merge origin/master into zzx_branch, local wins on conflicts 2026-07-08 09:14:43 +08:00
狗gogo 86eff95244 Update research-compliance workflow on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 09:14:21 +08:00
zzx-coder 2a75e68df9 Merge pull request '修改了skills中的部分bug' (#29) from zzx_branch into master 2026-07-08 08:29:13 +08:00
狗gogo f44333f9e1 Merge origin/master into zzx_branch, local wins on conflicts 2026-07-08 08:20:46 +08:00
狗gogo 152cb108d6 Update health skill docs and demo files on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 08:20:35 +08:00
zzx-coder 88dc671bc3 Merge pull request '修改部分bug' (#28) from zzx_branch into master 2026-07-08 01:29:51 +08:00
狗gogo a5e9fe8199 Update academic workflows and dashboard on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 01:15:23 +08:00
狗gogo 609a62c146 Update workflows and demo files on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 22:57:15 +08:00
狗gogo de9bca30bb Merge origin/master into zzx_branch, local wins on conflicts 2026-07-07 13:09:19 +08:00
狗gogo 08037ca60b Resolve conflicts: keep local changes on zzx_branch
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 13:08:51 +08:00
mengcheng fe4341fede Merge pull request '实现场景1:社区运营自动化' (#27) from mc_branch into master 2026-07-07 09:43:33 +08:00
camelliamc 2420579ba9 Merge branch 'master' into mc_branch 2026-07-07 09:37:59 +08:00
camelliamc 8ecbf8a203 fix(workflows): 修复项目初始化/多仓库协同 + 公共库 2026-07-07 09:25:53 +08:00
camelliamc 0b6d176a45 feat(workflows): 社区运营自动化 — Webhook接收器 + 部署 + systemd 2026-07-07 09:25:39 +08:00
camelliamc 411403ac5a feat(workflows): 社区运营自动化 — Issue实时分类 + 周报/Release定时发布 2026-07-07 09:23:27 +08:00
zzx-coder ad825a3e83 Merge pull request '新增前端' (#26) from zzx_branch into master 2026-07-06 20:12:53 +08:00
狗gogo 4379b16083 feat: add interactive showcase frontend (demo/) for gitlink-cli
新增 GitLink CLI 交互式展示平台,提供 Web UI 一键执行所有 CLI 命令及 AI Agent Skills,
无需记忆命令行参数即可完成功能演示、测试和验证。

- server.py:Python stdlib HTTP 服务 (127.0.0.1:8765),提供 /api/exec(执行 gitlink-cli
  命令)、/api/claude(执行 Claude Code Skills 提示词,支持多轮 session)、/api/cancel
- index.html:原生 JS/HTML/CSS 单文件 SPA(~1260 行),包含:
  - 双引擎切换:PowerShell 模式(8 模块 ~60 条预设命令)和 Claude Code 模式(9 模块 ~22 条
    预设提示词)
  - 双运行模式:Direct Run(点选即执行)和 Edit Mode(填入终端编辑后手动执行)
  - 终端模拟器:命令回显、stdout/stderr 着色、多行编辑、Ctrl+L 清屏
  - 智能链接提取:从输出中自动解析 owner/repo 及 Issue/PR/Webhook/Wiki 编号,生成 GitLink
    网页端可点击链接
  - 可折叠侧边栏 + 拖拽调节宽度 + 执行引擎状态指示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-06 20:12:23 +08:00
nudt_zk ea86b2b5a8 Merge pull request 'workflow的skill增加' (#25) from zk_branch into master 2026-07-06 12:15:51 +08:00
Donkey_kevin a8f8a30953 feat(workflows): add gitlink-research skill and academic workflow scripts
Add 5 research auxiliary scenarios: project insights, compliance check,
progress tracking, citation format, and knowledge graph support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-06 12:14:06 +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
mengcheng 6a701c6e3a Merge pull request 'feat(faq): 将生成的faq内容组织重构为真正的Q&A知识库' (#23) from mc_branch into master
Release / release (push) Failing after 2m17s Details
2026-07-02 14:57:55 +08:00
camelliamc b1f9adf8ad Merge branch 'master' into mc_branch 2026-07-02 14:50:23 +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
zzx-coder 42fafdc8ed Merge pull request '新修了一个user.go中的显示bug' (#22) from zzx_branch into master 2026-07-01 15:51:13 +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
zzx-coder 3a761d20c9 Merge pull request '修复子任务一中部分展示bug' (#21) from zzx_branch into master 2026-07-01 14:25:48 +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
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
camelliamc c02cf03a5b feat(faq): 将生成的faq内容组织重构为真正的Q&A知识库 2026-06-29 11:59:53 +08:00
camelliamc 582d27273f Merge branch 'master' into mc_branch 2026-06-29 10:44:59 +08:00
zzx-coder bd92fcf578 Merge pull request '针对子任务一种的功能实现修复了部分bug' (#20) from zzx-coder into master 2026-06-29 10:31:35 +08:00
camelliamc 0442e5b80c 同步master分支新增 dashboard 和 code-insight 的skill 2026-06-28 11:20:37 +08:00
camelliamc e5d46d6381 修改生成健康度报告SKILL.md 2026-06-28 10:35:28 +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