feat(repo): add repo +rename to rename the current repository #368
Loading…
Reference in New Issue
No description provided.
Delete Branch "heke1228/gitlink-cli:feat/repo-rename"
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?
背景
repo组有 create/fork/delete 等,但缺少对标gh repo rename的重命名。改动
新增
repo +rename --name <new>,走PATCH /{owner}/{repo},请求体同时设name(展示名)与identifier(URL 标识,二者均为该端点必填)。重命名会改变 URL 标识→克隆地址随之变化(与 gh 一致,已在 doc/changes 提示)。双语 i18n + 表驱动测试(断言 PATCH 路径与 name/identifier)。验证
go build ./...、go test ./shortcuts/repo/通过。