fix: Rebase with checkedBranches isnt working as expected (#23675)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Philip 2023-08-03 12:30:49 +03:00 committed by GitHub
parent d8bf58fbf3
commit 7f565423e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -398,7 +398,7 @@ export async function processBranch(
}
}
const userRebaseRequested =
let userRebaseRequested =
dependencyDashboardCheck === 'rebase' ||
!!config.dependencyDashboardRebaseAllOpen ||
!!config.rebaseRequested;
@ -410,6 +410,7 @@ export async function processBranch(
} else if (dependencyDashboardCheck === 'global-config') {
logger.debug(`Manual create/rebase requested via checkedBranches`);
config.reuseExistingBranch = false;
userRebaseRequested = true;
} else if (userApproveAllPendingPR) {
logger.debug(
'A user manually approved all pending PRs via the Dependency Dashboard.'