更新版本号至 0.0.5,并修正创建仓库的 URL 结构

This commit is contained in:
2026-02-19 20:52:28 +08:00
parent ff93296d34
commit ad85d8fdbe
2 changed files with 2 additions and 2 deletions

View File

@@ -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"

View File

@@ -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 } });
} }