From caa8c20b1f3cd5865e0c41850fae75763d216254 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Wed, 1 Nov 2017 06:33:21 +0100
Subject: [PATCH] fix: prune branches if repo is a fork (#1060)

---
 lib/workers/repository/index.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/workers/repository/index.js b/lib/workers/repository/index.js
index fa068fe5b6..a590265bb1 100644
--- a/lib/workers/repository/index.js
+++ b/lib/workers/repository/index.js
@@ -49,6 +49,7 @@ async function renovateRepository(repoConfig, token) {
     }
     if (config.isFork && !config.renovateJsonPresent) {
       logger.debug('repository is a fork and not manually configured');
+      await cleanup.pruneStaleBranches(config, []);
       return null;
     }
     if (config.baseBranch) {
-- 
GitLab