diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js index ff8e28625e2c5ce97b9f26d338adb4c0c39bab73..5c6dab7ec58ee6be481f91debe092e6494ddb425 100644 --- a/lib/workers/branch/index.js +++ b/lib/workers/branch/index.js @@ -162,7 +162,9 @@ async function processBranch(branchConfig) { }); await platform.ensureComment(pr.number, topic, content); } else { - await platform.ensureCommentRemoval(pr.number, topic); + if (config.updatedLockFiles && config.updatedLockFiles.length) { + await platform.ensureCommentRemoval(pr.number, topic); + } const prAutomerged = await prWorker.checkAutoMerge(pr, config); if (prAutomerged) { return 'automerged';