From 1d5de526100f457c4ab4eb32b7ac7bc487472c9a Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sun, 9 Sep 2018 07:36:43 +0200
Subject: [PATCH] refactor: gitlab pro footer

---
 lib/workers/global/index.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/workers/global/index.js b/lib/workers/global/index.js
index 84e3e7710c..c59aeb62a8 100644
--- a/lib/workers/global/index.js
+++ b/lib/workers/global/index.js
@@ -35,6 +35,16 @@ async function start() {
       config.prFooter =
         'This PR generated by Renovate Bot. Check out [Renovate Pro](https://renovatebot.com/pro) for real-time webhook handling and more.';
     }
+    // istanbul ignore if
+    if (
+      config.platform === 'gitlab' &&
+      config.endpoint &&
+      !config.endpoint.startsWith('https://gitlab.com/') &&
+      !config.customPrFooter
+    ) {
+      config.prFooter =
+        'Available now for GitLab: [Renovate Pro](https://renovatebot.com/pro), with real-time webhook handling and priority job queue.';
+    }
     // Move global variables that we need to use later
     const importGlobals = ['exposeEnv', 'prBanner', 'prFooter'];
     config.global = {};
-- 
GitLab