From 9b8f010f99fef9d8514e9290f09f05ce81342d04 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 11 Jul 2020 08:09:05 +0200
Subject: [PATCH] =?UTF-8?q?fix(github):=20don=E2=80=99t=20disable=20autome?=
 =?UTF-8?q?rge=20on=20ghe=20if=20push=20protection=20enabled?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/platform/github/index.ts | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts
index f7794ca2f6..46317be615 100644
--- a/lib/platform/github/index.ts
+++ b/lib/platform/github/index.ts
@@ -1616,14 +1616,6 @@ export async function mergePr(
 ): Promise<boolean> {
   logger.debug(`mergePr(${prNo}, ${branchName})`);
   // istanbul ignore if
-  if (config.isGhe && config.pushProtection) {
-    logger.debug(
-      { branch: branchName, prNo },
-      'Branch protection: Cannot automerge PR when push protection is enabled'
-    );
-    return false;
-  }
-  // istanbul ignore if
   if (config.prReviewsRequired) {
     logger.debug(
       { branch: branchName, prNo },
-- 
GitLab