From 340bd4765f2bce9fabeb3882fe0146c871cdb2b0 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sun, 22 Mar 2020 00:59:08 +0100 Subject: [PATCH] Use GitLab CI URL from predefined environment variables GitLab provides the API URL as a predefined enviornment variables for each CI job. Therefore adding it to the config and using it there seems very useful. It should also improve the protability of the repository. --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js b/config.js index 6e81004..f31a7af 100644 --- a/config.js +++ b/config.js @@ -1,6 +1,6 @@ module.exports = { platform: 'gitlab', - endpoint: 'https://git.shivering-isles.com/api/v4/', + endpoint: process.env.CI_API_V4_URL || 'https://git.shivering-isles.com/api/v4/', token: process.env.RENOVATE_TOKEN, autodiscover: true, gitAuthor: 'Renovate Bot ',