From 1d6c0d6c9338a2bece0de79cc12b43c0a86ffda1 Mon Sep 17 00:00:00 2001 From: kartikp10 Date: Wed, 11 Jan 2023 13:11:46 -0500 Subject: [PATCH] fix: ignore duplicate explicit repos --- src/common/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.ts b/src/common/utils.ts index 3df84bb..9da3250 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -148,7 +148,7 @@ export const getExplicitRepoList = ( const addedRepos: Repo[] = []; for (const repo of explicitRepos) { - if (repos.some((r) => repoMatches(r, repo))) { + if (repos.some((r) => repoMatches(r, repo)) || addedRepos.some((r) => repoMatches(r, repo))) { LOGGER.debug( `Skipping adding ${sourceInfo.repoTerm} ${repo.owner}/${repo.name} as we already got it from the ${sourceInfo.orgTerm}` );