fix: keep import-batch running after token failures #69

Merged
andres merged 6 commits from build/65-import-batch-token-failure into main 2026-09-04 08:02:45 +00:00
Showing only changes of commit 1bb4bd608c - Show all commits

View file

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