fix: don’t attempt automerge if push protection enabled (github)

This commit is contained in:
Rhys Arkins 2018-05-09 08:53:57 +02:00
parent ecdcd9df4f
commit 9e47738e8e

View file

@ -991,8 +991,9 @@ async function mergePr(prNo, branchName) {
if (config.pushProtection) {
logger.info(
{ branchName, prNo },
'Branch protection: Attempting to merge PR when push protection is enabled'
'Branch protection: Cannot automerge PR when push protection is enabled'
);
return false;
}
// istanbul ignore if
if (config.prReviewsRequired) {