更新版本号至 0.0.5,并修正创建仓库的 URL 结构
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kevisual/gitea",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"build": "bun run bun.config.ts"
|
||||
|
||||
@@ -42,7 +42,7 @@ export class GiteaRepo extends GiteaCore {
|
||||
|
||||
if (parts.length === 2) {
|
||||
const [orgOrUser, repoName] = parts;
|
||||
const url = this.makeUrl(`/${orgOrUser}/repos`);
|
||||
const url = this.makeUrl(`/orgs/${orgOrUser}/repos`);
|
||||
return this.request({ url, method: 'POST', data: { ...data, name: repoName } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user