Commit Graph

20 Commits

Author SHA1 Message Date
wauxing ca2431f05b Merge remote-tracking branch 'upstream/master' into baoerjun_branch
# Conflicts:
#	shortcuts/issue/issue.go
#	shortcuts/register.go
#	shortcuts/release/release.go
#	shortcuts/release/release_test.go
#	shortcuts/repo/repo_test.go
#	skills/README.md
#	skills/gitlink-onboarding/SKILL.md
#	skills/gitlink-pr/SKILL.md
#	skills/gitlink-repo/SKILL.md
#	skills/gitlink-search/SKILL.md
2026-06-15 11:15:43 +08:00
Surponess a7c16d64fe 1. 🆕 新人引导 Skill (gitlink-onboarding)
创建了 SKILL.md,包含 4 个完整工作流:
项目新人入门(项目概览 + 环境搭建)
寻找适合新人的 Issue(good-first-issue 搜索 + 5 维度友好度评估)
Issue 引导评论生成(自动生成个性化引导并发布)
新人贡献全流程引导(Fork → Branch → Code → PR)
创建了 examples/onboarding-workflow.md
2. 📦 补全 examples 示例文件
从 3/28 提升到 28/28 全覆盖
新增 24 个 examples 文件,每个包含场景描述、分步操作、输出示例、命令速览
3. 📋 Agent 平台验证记录
创建了 docs/agent-platform-verification.md
记录 27 个 Skills 的逐项验证结果 + 5 个典型验证案例
4. 📝 任务总结文档
创建了 docs/skills-completion-report.md
包含:设计思路(三层架构 + 三种类型 + 设计原则)、27 个 Skills 全景表、与课程要求对照、关键设计决策、后续建议
2026-06-12 10:08:28 +08:00
Mengz 0b48ec90d8 fix: 修正 Issue 和 PR 列表筛选 2026-06-05 11:43:30 +08:00
whale 18654a807d merge: sync fork, resolve conflicts keeping ours 2026-06-04 08:39:22 +08:00
whale 0efb085bf3 merge: sync with upstream, keep our changes 2026-06-04 08:31:35 +08:00
wauxing bf75410586 fix: 审查修复 — 汇总表数据、SKILL.md 文档完善、代码简化
- doc/shortcut-gaps.md: 修正汇总表错误 (pr 0→2, ci 0→3, 合计 16→21)
- repo.go: 提取 newRepoGetShortcut 消除 contributors/languages/tags 重复
- user_test.go: MissingLogin 测试合并为表驱动
- SKILL.md x6: 删除已有 Shortcut 对应的 Raw API, 补全缺失的表格列/使用示例
2026-06-03 20:55:25 +08:00
wbtiger 9843fc7ceb Merge PR #57: feat(issue): support metadata fields
Resolved conflicts with i18n infrastructure from PR #95 and metadata
lookup shortcuts from PR #43.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 22:46:34 +08:00
wauxing 0d58f04808 docs: 更新 SKILL.md — 删除虚假端点,新 Shortcut 从 Raw API 升级
SKILL.md 清理:
- gitlink-pr: 删除 check_can_merge/get_branches 虚假端点
- gitlink-ci: 删除 activate/deactivate/ci_authorize 虚假端点(整节移除)

SKILL.md 升级(Raw API → Shortcuts 表):
- gitlink-issue: +journals 加入 Shortcuts 表,从 Raw API 移除
- gitlink-repo: +readme +contributors +languages +commits +tags +raw 加入 Shortcuts 表,更新使用示例
- gitlink-org: +teams +create-team +remove-member 加入 Shortcuts 表,更新使用示例
- gitlink-user: +headmaps +stats-* +trends 加入 Shortcuts 表,更新使用示例
2026-06-02 15:22:15 +08:00
wangyue789 34be160d96 feat(issue): add metadata lookup shortcuts 2026-06-02 12:45:30 +08:00
wangyue789 89d5321713 feat(issue): support metadata fields and id alias 2026-06-02 12:42:34 +08:00
wauxing 5d0f2a6a40 fix: batch-update 恢复 --ids 统一模式,实现双模式并存;注释规范化;文档更新 2026-06-02 09:18:36 +08:00
whale 2b0ee1be6f feat: add Wiki, PM kanban, Webhook shortcuts + Issue batch operations
Wiki (5 commands):
- wiki +list/+view/+create/+update/+delete
- Uses gateway.gitlink.org.cn API gateway
- JSON body with owner/repo params, auto base64 encoding

PM/Kanban (6 commands):
- pm +boards/+sprints/+weekly/+tags/+pipelines/+actions
- Shared listPM helper to reduce duplication

Webhook (4 new commands + bugfix):
- webhook +view/+update/+history/+test
- Fixed create missing http_method field

Issue batch (3 commands):
- issue +batch-update/+batch-delete/+batch-close
- Dry-run safety + CSV file support

Infrastructure:
- Added DoForm/CallAPIRawForm for form-encoded bodies
- Added DecodeForm test utility
- All 39 tests passing

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 11:38:55 +08:00
wangyue789 23a478bd69 feat(issue): add authors shortcut 2026-05-25 08:50:47 +08:00
wangyue789 9638d279d3 feat(issue): add assigners shortcut 2026-05-25 08:49:41 +08:00
wangyue789 b2e840f498 feat(issue): add batch close shortcut with dry-run support 2026-05-13 17:27:50 +08:00
wbtiger 3e1abd8b8a docs: 补充 Issue status_id 映射表(1=新增, 2=正在解决, 3=已解决, 5=关闭) 2026-05-12 17:05:28 +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 90dee6eeb5 fix(skills): add tool boundary rules to prevent gh/hub misuse on GitLink
Problem:
AI agents (e.g., Claude Code) sometimes use `gh` (GitHub CLI) instead of
`gitlink-cli` when operating on GitLink repositories, causing 'command not
found' errors or targeting the wrong platform.

Solution:
- Add ' Tool Boundary' section to gitlink-shared/SKILL.md with platform-
  to-tool mapping table, judgment criteria, and dual-platform guidance
- Add CRITICAL one-liner to all 10 sub-skills ensuring agents see the
  constraint even without reading shared
- Does NOT block `gh` for GitHub operations — only prevents misuse on
  GitLink resources

Tested with 5 scenarios confirming:
1. GitLink operations correctly use gitlink-cli
2. GitHub operations still use gh when appropriate
3. Ambiguous cases default to gitlink-cli when skill is loaded
2026-04-18 16:14:20 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00