From 8c177243814ea81afcb4dcb8800ca1f65b51f242 Mon Sep 17 00:00:00 2001 From: Rishabh Jain <mailrishabh1403@gmail.com> Date: Sun, 24 Mar 2019 11:00:07 +0530 Subject: [PATCH] fix: allow rebasing from checkbox out of schedule (#3437) --- lib/workers/branch/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js index 13777c34b0..b1c8b98ab4 100644 --- a/lib/workers/branch/index.js +++ b/lib/workers/branch/index.js @@ -168,7 +168,11 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) { logger.info('Skipping branch creation as not within schedule'); return 'not-scheduled'; } - if (config.updateNotScheduled === false) { + const prRebaseChecked = + branchPr && + branchPr.body && + branchPr.body.includes(`- [x] <!-- ${appSlug}-rebase -->`); + if (config.updateNotScheduled === false && !prRebaseChecked) { logger.debug('Skipping branch update as not within schedule'); return 'not-scheduled'; } -- GitLab