From 0f2e064efd1e8a250fc33e293973d200b1e47d24 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 17 Jul 2019 10:22:13 +0200
Subject: [PATCH] =?UTF-8?q?fix(master-issue):=20skip=20updating=20if=20exi?=
 =?UTF-8?q?ting=20early=20due=20to=20autome=E2=80=A6=20(#4104)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/workers/repository/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/workers/repository/index.js b/lib/workers/repository/index.js
index 83e1c09419..3969b24ff6 100644
--- a/lib/workers/repository/index.js
+++ b/lib/workers/repository/index.js
@@ -26,7 +26,9 @@ async function renovateRepository(repoConfig) {
       config
     );
     await ensureOnboardingPr(config, packageFiles, branches);
-    await ensureMasterIssue(config, branches);
+    if (res !== 'automerged') {
+      await ensureMasterIssue(config, branches);
+    }
     await finaliseRepo(config, branchList);
     repoResult = processResult(config, res);
   } catch (err) /* istanbul ignore next */ {
-- 
GitLab