feat(commit): add commit inspection shortcuts #206
Loading…
Reference in New Issue
No description provided.
Delete Branch "wangyue111/gitlink-cli:feat/commit-inspect-shortcuts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
代码审查和仓库复现经常需要查看提交列表、单个提交变更文件、完整 diff 和 blame 信息。OpenAPI 已有对应接口,但 CLI 目前缺少统一 Shortcut,Agent 只能通过 Raw API 手动拼路径。
新增功能
新增
gitlink-cli commit命令组:commit +list:提交列表,支持--sha --page --limitcommit +files:单个 commit 的变更文件,支持--filepathcommit +diff:单个 commit 的 diff 信息commit +blame:单个文件 blame,支持 branch/tag/commit shaOpenAPI 对齐
GET /v1/{owner}/{repo}/commitsGET /v1/{owner}/{repo}/commits/{sha}/filesGET /v1/{owner}/{repo}/commits/{sha}/diffGET /v1/{owner}/{repo}/blame价值
全部命令只读,适合 PR Review、变更追踪、科研仓库复现、代码归因和 Agent 预检。
测试
文档
更新 README / README.zh-CN / skills/README,新增
skills/gitlink-commit/SKILL.md和doc/changes/commit-inspect-shortcuts.md。5afd2f46b7to79fb16721879fb167218to049927305c049927305cto0e149b3cbe