Skip to content
Snippets Groups Projects
Commit 7b3e14c5 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: global env hostRules

parent 022206cc
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ export function getConfig(env: NodeJS.ProcessEnv): AllConfig {
});
if (env.GITHUB_COM_TOKEN) {
logger.debug(`Converting GITHUB_COM_TOKEN into a global host rule`);
config.hostRules.push({
hostType: PLATFORM_TYPE_GITHUB,
matchHost: 'github.com',
......@@ -119,6 +120,7 @@ export function getConfig(env: NodeJS.ProcessEnv): AllConfig {
const existingRule = hostRules.find(
(hr) => hr.hostType === hostType && hr.matchHost === matchHost
);
logger.debug(`Converting ${envName} into a global host rule`);
if (existingRule) {
// Add current field to existing rule
existingRule[suffix] = env[envName];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment