refactor: gitlab pro footer

This commit is contained in:
Rhys Arkins 2018-09-09 07:36:43 +02:00
parent 69ddb156c2
commit 1d5de52610

View file

@ -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 = {};