mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16: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,
|
||||
});
|
||||
logger.info('Fork deleted');
|
||||
if (is.nonEmptyArray(existingRepos)) {
|
||||
existingRepos = existingRepos.filter(
|
||||
(repo) => repo !== config.repository
|
||||
);
|
||||
}
|
||||
} catch (deleteErr) {
|
||||
logger.warn({ err: deleteErr }, 'Could not delete fork');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue