fix: remove lockFileMaintenance pruning

This commit is contained in:
Rhys Arkins 2020-05-11 21:45:58 +02:00
parent 08922f4fba
commit e0d35b4a3d

View file

@ -438,22 +438,6 @@ export async function processBranch(
} }
const commitHash = await commitFilesToBranch(config); const commitHash = await commitFilesToBranch(config);
// TODO: Remove lockFileMaintenance rule?
if (
config.updateType === 'lockFileMaintenance' &&
!config.parentBranch &&
branchExists
) {
logger.info(
'Deleting lock file maintenance branch as master lock file no longer needs updating'
);
if (config.dryRun) {
logger.info('DRY-RUN: Would delete lock file maintenance branch');
} else {
await platform.deleteBranch(config.branchName);
}
return 'done';
}
if (!commitHash && !branchExists) { if (!commitHash && !branchExists) {
return 'no-work'; return 'no-work';
} }