@@ -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{
constrepo=`${orgName}/renovate-config`;
constrepo=`${orgName}/renovate-config`;
constorgPresetName=`local>${repo}`;
logger.debug(`Checking for preset: ${orgPresetName}`);
if (awaitgetPreset({repo})){
if (awaitgetPreset({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{
constrepo=`${orgName}/.${platform}`;
constrepo=`${orgName}/.${platform}`;
constpresetName='renovate-config';
constpresetName='renovate-config';
constorgPresetName=`local>${repo}:${presetName}`;
logger.debug(`Checking for preset: ${orgPresetName}`);
if (
if (
awaitgetPreset({
awaitgetPreset({
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.',