Move test repo URL to environment

This commit is contained in:
2026-07-06 09:48:55 +08:00
parent 77a07aae0a
commit 3f0ee98a54
4 changed files with 24 additions and 9 deletions

View File

@@ -19,6 +19,10 @@ const { safeClose, safeGoto } = require(path.join(__dirname, '..', 'utils', 'pag
async function updateProject(page) {
logger.info('👉 执行项目更新');
if (!config.urls.testRepo) {
throw new Error('未配置 GITCODE_TEST_REPO_URL无法执行更新项目任务');
}
const context = page.context();
const newPage = await context.newPage();