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