feat: 添加getRepo方法到Repo类以获取仓库信息,并更新相关导入

This commit is contained in:
2026-02-14 18:12:37 +08:00
parent 9bb9f447ec
commit d231f3748a
5 changed files with 8 additions and 7 deletions

View File

@@ -108,6 +108,10 @@ export class Repo extends CNBCore {
const url = `/${repo}`;
return this.patch({ url, data: params });
}
getRepo(repo: string): Promise<Result<RepoItem>> {
const url = `/${repo}`;
return this.get({ url });
}
}
type UpdateRepoInfo = {
description?: string;