fix: isolate import-batch token failures
This commit is contained in:
parent
721ba343cc
commit
1bb4bd608c
1 changed files with 23 additions and 23 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue