fix(pr): rebase checkbox detection when PR edited

Closes #3221
This commit is contained in:
Rhys Arkins 2019-02-16 11:41:43 +01:00
parent 268c86b0ff
commit 910ce2076a

View file

@ -129,7 +129,10 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) {
branchPr.title && branchPr.title.startsWith('rebase!');
const labelRebase =
branchPr.labels && branchPr.labels.includes(config.rebaseLabel);
if (titleRebase || labelRebase) {
const prRebaseChecked =
branchPr.body &&
branchPr.body.includes(`- [x] <!-- ${appSlug}-rebase -->`);
if (prRebaseChecked || titleRebase || labelRebase) {
// istanbul ignore if
if (config.dryRun) {
logger.info(