From 546a21d10b37d246da8fdc5bbdf7a11e102ddd1f Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sun, 19 May 2019 07:01:25 +0200
Subject: [PATCH] fix(vulnerability-alerts): skip hourly limit

---
 lib/workers/branch/index.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js
index 7c3b574196..13c9dbbb8c 100644
--- a/lib/workers/branch/index.js
+++ b/lib/workers/branch/index.js
@@ -109,7 +109,12 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) {
         return 'needs-approval';
       }
     }
-    if (!branchExists && prHourlyLimitReached && !masterIssueCheck) {
+    if (
+      !branchExists &&
+      prHourlyLimitReached &&
+      !masterIssueCheck &&
+      !config.vulnerabilityAlert
+    ) {
       logger.info('Reached PR creation limit - skipping branch creation');
       return 'pr-hourly-limit-reached';
     }
-- 
GitLab