Compare commits

...

1 Commits

Author SHA1 Message Date
jiantw83 8a28d1f1ef test: 修正路徑 2026-05-11 13:50:54 +00:00
+1 -2
View File
@@ -1,5 +1,4 @@
import { spawnSync } from 'child_process';
import path from 'path';
import { GITEA_SERVER_URL, GITEA_REPOSITORY, GITEA_TOKEN, PR_HEAD_BRANCH, FINDINGS_PATH } from './config.js';
function git(args, cwd) {
@@ -10,7 +9,7 @@ function git(args, cwd) {
}
export async function commitAndPush(workspace) {
const repoDir = path.join(workspace, GITEA_REPOSITORY);
const repoDir = workspace;
const remoteUrl = GITEA_SERVER_URL.replace(/\/$/, '')
.replace('https://', `https://${GITEA_TOKEN}@`)
.replace('http://', `http://${GITEA_TOKEN}@`) + `/${GITEA_REPOSITORY}.git`;