From d35b6733237acb554c640924ece340a5f3b6fcba Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 13 Feb 2019 12:46:26 -0500
Subject: [PATCH] =?UTF-8?q?refactor(github):=20don=E2=80=99t=20warn=20dele?=
 =?UTF-8?q?ting=20protected=20branch?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/platform/github/storage.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/platform/github/storage.js b/lib/platform/github/storage.js
index d0dbe8ad9c..ab9edd0831 100644
--- a/lib/platform/github/storage.js
+++ b/lib/platform/github/storage.js
@@ -151,6 +151,8 @@ class Storage {
             { branch: branchName },
             'Branch to delete does not exist'
           );
+        } else if (err.message.startsWith('Cannot delete protected branch')) {
+          logger.info({ branch: branchName }, 'Cannot delete protected branch');
         } else {
           logger.warn({ err, branch: branchName }, 'Error deleting branch');
         }
-- 
GitLab