Skip to content
Snippets Groups Projects
Unverified Commit 665866a0 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(onboarding): don’t check onboarding cache unless onboarding=true (#21967)

parent 18ddc2fe
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ describe('workers/repository/onboarding/branch/check', () => { ...@@ -20,6 +20,7 @@ describe('workers/repository/onboarding/branch/check', () => {
const config = partial<RenovateConfig>({ const config = partial<RenovateConfig>({
requireConfig: 'required', requireConfig: 'required',
suppressNotifications: [], suppressNotifications: [],
onboarding: true,
}); });
it('skips normal onboarding check if onboardingCache is valid', async () => { it('skips normal onboarding check if onboardingCache is valid', async () => {
......
...@@ -68,6 +68,7 @@ export async function isOnboarded(config: RenovateConfig): Promise<boolean> { ...@@ -68,6 +68,7 @@ export async function isOnboarded(config: RenovateConfig): Promise<boolean> {
// if onboarding cache is present and base branch has not been updated branch is not onboarded // if onboarding cache is present and base branch has not been updated branch is not onboarded
// if closed pr exists then presence of onboarding cache doesn't matter as we need to skip onboarding // if closed pr exists then presence of onboarding cache doesn't matter as we need to skip onboarding
if ( if (
config.onboarding &&
!pr && !pr &&
onboardingBranchCache && onboardingBranchCache &&
onboardingBranchCache.defaultBranchSha === onboardingBranchCache.defaultBranchSha ===
......
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