Skip to content

Commit

Permalink
fix(azure): log repo not found message (#17268)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Aug 18, 2022
1 parent 3ad7f74 commit acaa8eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/modules/platform/azure/index.ts
Expand Up @@ -135,6 +135,7 @@ export async function getRawFile(
}

if (!repoId) {
logger.debug('No repoId so cannot getRawFile');
return null;
}

Expand Down
14 changes: 8 additions & 6 deletions lib/modules/platform/azure/util.ts
Expand Up @@ -181,11 +181,13 @@ export function getRepoByName(
project = project.toLowerCase();
repo = repo.toLowerCase();

return (
repos?.find(
(r) =>
project === r?.project?.name?.toLowerCase() &&
repo === r?.name?.toLowerCase()
) ?? null
const foundRepo = repos?.find(
(r) =>
project === r?.project?.name?.toLowerCase() &&
repo === r?.name?.toLowerCase()
);
if (!foundRepo) {
logger.debug(`Repo not found: ${name}`);
}
return foundRepo ?? null;
}

0 comments on commit acaa8eb

Please sign in to comment.