Skip to content
Snippets Groups Projects
Commit e2f067fa authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Revert "fix: skip pruning for multiple baseBranches"

This reverts commit 81c72247.
parent 3877b87c
No related merge requests found
...@@ -41,11 +41,6 @@ async function pruneStaleBranches(config) { ...@@ -41,11 +41,6 @@ async function pruneStaleBranches(config) {
logger.debug('No branches to clean up'); logger.debug('No branches to clean up');
return; return;
} }
// istanbul ignore if
if (config.baseBranches && config.baseBranches.length) {
logger.info('Skipping cleanup for multiple baseBranches');
return;
}
for (const branchName of remainingBranches) { for (const branchName of remainingBranches) {
logger.info({ branch: branchName }, `Deleting orphan branch`); logger.info({ branch: branchName }, `Deleting orphan branch`);
const pr = await platform.findPr(branchName, null, 'open'); const pr = await platform.findPr(branchName, null, 'open');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment