Skip to content

Commit

Permalink
Merge branch 'main' into renovate-8089
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Sep 10, 2021
2 parents ee4fab2 + 19b9311 commit ae23c5f
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 258 deletions.
8 changes: 8 additions & 0 deletions lib/platform/gitlab/index.ts
Expand Up @@ -389,6 +389,14 @@ export async function getBranchStatus(
}

const branchStatuses = await getStatus(branchName);
// istanbul ignore if
if (!is.array(branchStatuses)) {
logger.warn(
{ branchName, branchStatuses },
'Empty or unexpected branch statuses'
);
return BranchStatus.yellow;
}
logger.debug(`Got res with ${branchStatuses.length} results`);
// ignore all skipped jobs
const res = branchStatuses.filter((check) => check.status !== 'skipped');
Expand Down

0 comments on commit ae23c5f

Please sign in to comment.