Skip to content

Commit

Permalink
fix: swap pending and approval order in dashboard display (#25959)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Nov 25, 2023
1 parent 95ad0d0 commit 3664096
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/workers/repository/update/branch/index.ts
Expand Up @@ -171,6 +171,17 @@ export async function processBranch(
result: 'already-existed',
};
}
if (
!branchExists &&
branchConfig.pendingChecks &&
!dependencyDashboardCheck
) {
return {
branchExists: false,
prNo: branchPr?.number,
result: 'pending',
};
}
// istanbul ignore if
if (!branchExists && config.dependencyDashboardApproval) {
if (dependencyDashboardCheck) {
Expand Down Expand Up @@ -209,17 +220,6 @@ export async function processBranch(
result: 'commit-limit-reached',
};
}
if (
!branchExists &&
branchConfig.pendingChecks &&
!dependencyDashboardCheck
) {
return {
branchExists: false,
prNo: branchPr?.number,
result: 'pending',
};
}
if (branchExists) {
// check if branch is labelled to stop
config.stopUpdating = branchPr?.labels?.includes(
Expand Down

0 comments on commit 3664096

Please sign in to comment.