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

refactor: improve default onboarding preset log messages

parent a7863f25
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,10 @@ async function getOnboardingConfig( ...@@ -26,8 +26,10 @@ async function getOnboardingConfig(
// Check for org/renovate-config // Check for org/renovate-config
try { try {
const repo = `${orgName}/renovate-config`; const repo = `${orgName}/renovate-config`;
const orgPresetName = `local>${repo}`;
logger.debug(`Checking for preset: ${orgPresetName}`);
if (await getPreset({ repo })) { if (await getPreset({ repo })) {
orgPreset = `local>${repo}`; orgPreset = orgPresetName;
} }
} catch (err) { } catch (err) {
if ( if (
...@@ -45,13 +47,16 @@ async function getOnboardingConfig( ...@@ -45,13 +47,16 @@ async function getOnboardingConfig(
try { try {
const repo = `${orgName}/.${platform}`; const repo = `${orgName}/.${platform}`;
const presetName = 'renovate-config'; const presetName = 'renovate-config';
const orgPresetName = `local>${repo}:${presetName}`;
logger.debug(`Checking for preset: ${orgPresetName}`);
if ( if (
await getPreset({ await getPreset({
repo, repo,
presetName, presetName,
}) })
) { ) {
orgPreset = `local>${repo}:${presetName}`; orgPreset = orgPresetName;
} }
} catch (err) { } catch (err) {
if ( if (
...@@ -74,7 +79,7 @@ async function getOnboardingConfig( ...@@ -74,7 +79,7 @@ async function getOnboardingConfig(
} else { } else {
// Organization preset did not exist // Organization preset did not exist
logger.debug( logger.debug(
'No default org/owner preset found, so the default onboarding config will be used instead. Note: do not be concerned with any 404 messages that preceded this.', 'No default org/owner preset found, so the default onboarding config will be used instead.',
); );
} }
......
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