mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
fix(github): remove forked repo from list after deleting
This commit is contained in:
parent
3e5ead7111
commit
efbe610de8
1 changed files with 5 additions and 0 deletions
|
@ -374,6 +374,11 @@ export async function initRepo({
|
||||||
token: forkToken || opts.token,
|
token: forkToken || opts.token,
|
||||||
});
|
});
|
||||||
logger.info('Fork deleted');
|
logger.info('Fork deleted');
|
||||||
|
if (is.nonEmptyArray(existingRepos)) {
|
||||||
|
existingRepos = existingRepos.filter(
|
||||||
|
(repo) => repo !== config.repository
|
||||||
|
);
|
||||||
|
}
|
||||||
} catch (deleteErr) {
|
} catch (deleteErr) {
|
||||||
logger.warn({ err: deleteErr }, 'Could not delete fork');
|
logger.warn({ err: deleteErr }, 'Could not delete fork');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue