Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Nov 3, 2021
1 parent cea4e14 commit fbf521a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/platform/github/index.ts
Expand Up @@ -89,7 +89,7 @@ const platformConfig: PlatformConfig = {
const escapeHash = (input: string): string =>
input ? input.replace(regEx(/#/g), '%23') : input;

export async function detectPlatformConfig(): Promise<void> {
export async function detectGhe(): Promise<void> {
platformConfig.isGhe =
URL.parse(platformConfig.endpoint).host !== 'api.github.com';
if (platformConfig.isGhe) {
Expand Down Expand Up @@ -121,7 +121,7 @@ export async function initPlatform({
logger.debug('Using default github endpoint: ' + platformConfig.endpoint);
}

await detectPlatformConfig();
await detectGhe();

let userDetails: UserDetails;
let renovateUsername: string;
Expand All @@ -139,7 +139,7 @@ export async function initPlatform({
discoveredGitAuthor = `${userDetails.name} <${userEmail}>`;
}
}
logger.debug('Authenticated as GitHub user: ' + renovateUsername);
logger.debug({ platformConfig, renovateUsername }, 'Platform config');
const platformResult: PlatformResult = {
endpoint: platformConfig.endpoint,
gitAuthor: gitAuthor || discoveredGitAuthor,
Expand Down

0 comments on commit fbf521a

Please sign in to comment.