基础设施修复 #97

Open
jiangtx wants to merge 51 commits from jiangtx/gitlink-cli:jtx_branch into master

51 Commits

Author SHA1 Message Date
蒋天翔 3dbcef1b34 Merge origin/master into jtx_branch
冲突解决策略:9 个冲突文件均以 master 为准(master 的 shortcut 集是
jtx_branch 的超集——notification/pm/export/wiki/capability 等已独立实现
且更完整,含 P0 show/demo/--web/--demo + i18n + 覆盖率门禁)。

jtx_branch 的独有贡献(master 没有的)通过 merge 自动合入:
- shortcuts/notification/notification_test.go

冲突文件(全选 master 版本):
.devops/ci.yml(jtx_branch 删 / master 加覆盖率门禁 → 保留 master)
.devops/gitlink-cli.yml, cmd/{alias,auth,root}.go, internal/client/client.go,
shortcuts/{register,register_test,repo/repo}.go
2026-07-07 09:10:45 +08:00
蒋天翔 2019da5eb5 chore: 停止跟踪 gitlink-cli 二进制构建产物
gitlink-cli / gitlink-cli.exe 是 go build 的本地产出,不应入库。
- 加入 .gitignore(/ 前缀精确匹配根目录)
- git rm --cached 停止跟踪(保留本地文件)
- 后续分发走 Release 附件

历史中的旧版本 blob 仍保留(不影响已发布的 commit),仅停止后续跟踪。
2026-07-07 09:00:14 +08:00
蒋天翔 87767f5482 feat: P0 新增 show/demo/--web/--demo 命令与离线演示能力
- internal/web: URL Builder (16 模式) + 跨平台浏览器(单一 URL 来源)
- cmd/show: 12 子命令打印 GitLink 网页 URL(投影友好 + --format json)
- cmd/demo: +run showcase 离线演示脚本(自动 GITLINK_DEMO=1)
- internal/demo: Mock Transport + 20 fixtures + --demo flag(无网无 Token)
- shortcuts/common/web_post.go: --web 全局后处理(命令执行后打开网页)
- shortcuts/capability: +check 支持 --format 结构化输出
- scripts/verify.sh: 7 段分段验证脚本(编译/覆盖率/注册/E2E/联动)
- doc/: 验证报告 + 演示脚本 + 设计文档
- .gitignore: 排除验证临时产物与课程材料
2026-07-07 08:51:14 +08:00
蒋天翔 57c2811f48 新建 internal/web/ (url_builder.go + browser.go + 测试) 2026-07-07 08:51:12 +08:00
wyxttn 6f88fd8496 refactor: .devops/wyx_gitlink_cli_release.yml 2026-07-04 10:30:44 +08:00
wyxttn 8aacc6d29b feat: .devops/wyx_gitlink_cli_release.yml 2026-07-04 10:06:04 +08:00
wyxfzgg 51026af669 feat(skills): 新增gitlink-pr-gate编排型Skill(场景②代码质量看门人)
PR提交 → AI代码审查 → CI检查 → 结构化Review评论 → 质量达标自动合并
编排 code-review/commit-quality/ci-health/pr 四个子Skill,串联8+命令。
统一采用编排型Skill方式实现,与前4个场景一致。
2026-07-03 10:59:27 +08:00
wyxfzgg 9a493914de feat(skills): 新增4个编排型Skill(子任务三端到端自动化工作流)
- gitlink-community-ops: 社区运营自动化(Issue分类→周报→Release)
- gitlink-project-bootstrap: 项目一键初始化
- gitlink-multi-repo-ops: 多仓库协同
- gitlink-contributor-growth: 贡献者成长体系(排行+徽章)

每个Skill编排多个已有子Skill,串联≥6个CLI命令,含Mermaid流程图与Agent触发示例。
2026-07-02 16:15:18 +08:00
林迪文 52ac386721 feat: 增强onboarding(自动评论) + issue-triage(标签/责任人) + 新增3个Skill 2026-07-01 21:24:02 +08:00
lindiwen23 201ec996db Merge pull request 'feat: add gitlink-web service' (#18) from dw into master 2026-07-01 15:28:35 +08:00
林迪文 5a51c882b2 feat: add gitlink-web service 2026-07-01 15:28:57 +08:00
蒋天翔 0eb37dc2de style: gofmt 格式化修正(import 排序 + 对齐)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 10:28:22 +08:00
蒋天翔 b32ff9e682 ci: 构建流水线增加批量操作命令验证(batch-close/series-update/batch-add) 2026-06-05 09:28:31 +08:00
蒋天翔 4c8d330ae0 chore: 添加 Linux 版 gitlink-cli 二进制 2026-06-04 15:52:03 +08:00
蒋天翔 40e162e6cd chore: 添加 gitlink-cli.exe 编译产物 2026-06-04 15:50:14 +08:00
蒋天翔 b094cac5df merge: 合并远程 master,解决 register_test.go 冲突(保留 capability 模块) 2026-06-04 15:47:35 +08:00
蒋天翔 c4769544ef fix: 修复 wiki 命令参数传递 + auth token store 跨平台适配 2026-06-04 15:46:55 +08:00
wyxttn 90536f620d refactor: .devops/wyx_gitlink_cli_ci.yml 2026-06-04 15:31:17 +08:00
wyxfzgg 0c47cf261f fix: CI 格式化改为自动修复模式(本地无Go环境无法手动gofmt) 2026-06-04 15:28:32 +08:00
wyxfzgg fad02b9f66 fix: 修复 gofmt 格式化问题
- 所有文件从 CRLF 转为 LF 换行
- issue.go: 修正 journals/series-update 条目缩进
- register_test.go: 修正 expectedGroups 缩进
- ci.yml: 恢复格式化检查模式
2026-06-04 15:23:15 +08:00
蒋天翔 72055f3aad 更改部分 2026-06-04 15:13:01 +08:00
wyxfzgg 11e6087b1b fix: CI 格式化改为自动修复模式,避免别人的未格式化代码导致流水线失败 2026-06-04 14:35:00 +08:00
蒋天翔 a8e67fc32e feat: add repo +delete-file shortcut and convert Skills from raw API to shortcut commands
- Add repo +delete-file shortcut command in shortcuts/repo/repo.go
- Add comprehensive unit tests for create-file, update-file, delete-file
  (15 new test cases covering happy paths, optional params, missing args,
  and HTTP error handling)
- Update gitlink-notification-digest Skill to v3.0.0 using notification
  +list/+read/+read-all/+watch shortcuts
- Update gitlink-pm Skill to v1.1.0 using pm +dashboards/+sprints/+weekly
  shortcuts
- Fix gitlink-shared/SKILL.md Raw API example (user +me → api GET /users/me)
- Update api-reference.md examples to use notification shortcuts
- Update gitlink-contributor-insight examples to reflect current
  command availability
- Update CI config branch from wyx_branch to master

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 11:34:08 +08:00
wyxttn f334f3484f refactor: .devops/wyx_gitlink_cli_build.yml 2026-06-04 11:18:49 +08:00
wyxttn 23894e5a6f refactor: .devops/wyx_gitlink_cli_ci.yml 2026-06-04 11:15:37 +08:00
wyxfzgg 594e8f487b ci: 改回使用 gitlink_cli 密钥组 2026-06-04 11:08:21 +08:00
wyxfzgg ff14af90fa fix: 修复 alias 单元测试,改为直接测试底层函数避免 cobra 集成问题 2026-06-04 11:05:54 +08:00
wyxttn 5fd6b390ec refactor: delete .devops/jtx_gitlink_cli.yml 2026-06-04 11:02:14 +08:00
wyxfzgg 0cd20b7616 fix: 复用已验证的 gitlink_cli_ci 密钥组,修复 SSH 认证问题 2026-06-04 11:01:06 +08:00
wyxttn 2da3607083 refactor: .devops/wyx_gitlink_cli_ci.yml 2026-06-04 11:00:12 +08:00
wyxttn f7a9492ceb refactor: .devops/wyx_gitlink_cli_build.yml 2026-06-04 10:54:14 +08:00
wyxttn 7c29e22606 refactor: .devops/wyx_gitlink_cli_ci.yml 2026-06-04 10:51:45 +08:00
wyxfzgg f1555afc18 fix: 流水线 SSH 认证改为密码方式 2026-06-04 10:50:59 +08:00
wyxttn 02f5022852 feat: .devops/wyx_gitlink_cli_build.yml 2026-06-04 10:49:05 +08:00
wyxttn 31b6385e15 feat: .devops/wyx_gitlink_cli_ci.yml 2026-06-04 10:48:35 +08:00
wyxfzgg 49c0fc9194 ci: 配置 master 分支的 CI 检查和构建验证两条流水线
- 更新 .devops/ci.yml: master 合并后自动执行编译/静态分析/测试/格式化检查
- 新增 .devops/build.yml: master 合并后编译二进制并验证所有新命令注册成功
2026-06-04 10:40:44 +08:00
jiangtx 6a883ad27d refactor: .devops/jtx_gitlink_cli.yml 2026-06-04 08:50:41 +08:00
蒋天翔 da95900b83 chore: trigger pipeline with updated CI config
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 08:47:03 +08:00
蒋天翔 298c29795e feat: merge jtx_branch unique commands into master
- ci: add activate, deactivate, authorize commands; fix indentation
- org: add teams, create-team, remove-user commands; fix indentation
- search: add code, issues commands; fix indentation and cleanup
- repo: add raw, activity, compare, create-file, update-file commands
- notification: add watch command
- label: add clone command
- register_test: fix expected group count

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 08:33:04 +08:00
蒋天翔 044551dbc8 fix: remove -race flag and fix shell chain logic in CI pipeline
-race requires CGO/gcc not available in Alpine. Parenthesized || true
to prevent chain logic interference.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 21:06:08 +08:00
蒋天翔 7e7e2ccb47 feat: 添加通知管理、标签克隆、仓库文件操作等 8 项功能
新增功能:
- notification: list/read/read-all/watch 快捷命令
- repo: raw/activity/compare/create-file/update-file 快捷命令
- label: clone 快捷命令(从其他仓库克隆标签)
- alias: +list/+set/+delete/+expand 子命令

修复:
- auth.go: 修复 Windows 下 syscall.Stdin 类型兼容问题
- register_test: 更新分组计数以包含 notify

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 20:45:15 +08:00
jiangtx 796e7c0bb5 feat: .devops/jtx_gitlink_cli.yml 2026-06-03 20:38:16 +08:00
蒋天翔 028a2f1cab feat: 添加 Dockerfile 和建木 DevOps 流水线配置
- 多阶段 Docker 构建(golang:1.26-alpine + alpine:3.20)
- 流水线:push 到 master 自动测试、构建、部署到 ECS

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 20:34:57 +08:00
蒋天翔 0fd9d0f6d7 feat: 添加 Dockerfile 和建木 DevOps 流水线配置
- 多阶段 Docker 构建(golang:1.26-alpine + alpine:3.20)
- 流水线:push 到 master 自动测试、构建、部署到 ECS

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 20:34:30 +08:00
wyxttn 3a3b2a9f31 Merge pull request '新增 alias/browse/status 三个开发者体验命令的单元测试' (#17) from wyx_branch into master 2026-06-03 12:45:26 +08:00
wyxttn 23f44bf211 Merge pull request 'feat: 安装脚本 + CI 配置 + 命令帮助文档 + 跨平台验证报告' (#16) from wyx_branch into master 2026-06-03 12:23:47 +08:00
wyxttn 99e90deda1 Merge pull request 'feat: 新建 export 模块,添加 3 条数据导出命令' (#15) from wyx_branch into master 2026-06-03 12:02:09 +08:00
wyxttn 90d1bb53f3 Merge pull request 'feat: 新增 alias/browse/status 三个开发者体验命令' (#14) from wyx_branch into master 2026-06-03 11:56:16 +08:00
wyxttn 3c278c5922 Merge pull request 'feat: 新建 wiki 模块,添加 5 条 Wiki 管理命令' (#13) from wyx_branch into master 2026-06-03 11:44:09 +08:00
wyxttn 54632b9ac6 Merge pull request 'feat: 新建 pm 模块,添加 6 条项目管理命令' (#12) from wyx_branch into master 2026-06-03 11:35:45 +08:00
蒋天翔 ad906e212c fix: handle XML declaration in detectHTMLResponse and remove .devops/ci.yml
- Strip <?xml...?> declaration before checking HTML prefixes
- Remove .devops/ci.yml containing personal DevCloud config

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 08:13:33 +08:00