Skip to content

Commit

Permalink
fix(onboarding): don’t check onboarding cache unless onboarding=true (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 4, 2023
1 parent 18ddc2f commit 665866a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/workers/repository/onboarding/branch/check.spec.ts
Expand Up @@ -20,6 +20,7 @@ describe('workers/repository/onboarding/branch/check', () => {
const config = partial<RenovateConfig>({
requireConfig: 'required',
suppressNotifications: [],
onboarding: true,
});

it('skips normal onboarding check if onboardingCache is valid', async () => {
Expand Down
1 change: 1 addition & 0 deletions lib/workers/repository/onboarding/branch/check.ts
Expand Up @@ -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 closed pr exists then presence of onboarding cache doesn't matter as we need to skip onboarding
if (
config.onboarding &&
!pr &&
onboardingBranchCache &&
onboardingBranchCache.defaultBranchSha ===
Expand Down

0 comments on commit 665866a

Please sign in to comment.