mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
refactor: gitlab pro footer
This commit is contained in:
parent
69ddb156c2
commit
1d5de52610
1 changed files with 10 additions and 0 deletions
|
@ -35,6 +35,16 @@ async function start() {
|
||||||
config.prFooter =
|
config.prFooter =
|
||||||
'This PR generated by Renovate Bot. Check out [Renovate Pro](https://renovatebot.com/pro) for real-time webhook handling and more.';
|
'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
|
// Move global variables that we need to use later
|
||||||
const importGlobals = ['exposeEnv', 'prBanner', 'prFooter'];
|
const importGlobals = ['exposeEnv', 'prBanner', 'prFooter'];
|
||||||
config.global = {};
|
config.global = {};
|
||||||
|
|
Loading…
Reference in a new issue