fix: isolate import-batch token failures
All checks were successful
labels / labels (pull_request) Successful in 12s
ci / test (pull_request) Successful in 20s

This commit is contained in:
codex-bot-andresmgsl 2026-09-04 06:58:57 +00:00
parent 721ba343cc
commit 1bb4bd608c

View file

@ -655,6 +655,7 @@ repo
continue;
}
try {
const service = item.service || 'github';
const isPrivate = item.public ? false : Boolean(item.private);
const payload = {
@ -678,7 +679,6 @@ repo
if (payload[key] === undefined) delete payload[key];
});
try {
const result = await client.migrateRepo(payload);
console.log(`Imported: ${result.full_name} -> ${result.html_url}`);
results.push({ name, status: 'ok', url: result.html_url });