feat: 添加getRepo方法到Repo类以获取仓库信息,并更新相关导入
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user