Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
665866a0
Unverified
Commit
665866a0
authored
1 year ago
by
Rhys Arkins
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/workers/repository/onboarding/branch/check.spec.ts
+1
-0
1 addition, 0 deletions
lib/workers/repository/onboarding/branch/check.spec.ts
lib/workers/repository/onboarding/branch/check.ts
+1
-0
1 addition, 0 deletions
lib/workers/repository/onboarding/branch/check.ts
with
2 additions
and
0 deletions
lib/workers/repository/onboarding/branch/check.spec.ts
+
1
−
0
View file @
665866a0
...
@@ -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
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
lib/workers/repository/onboarding/branch/check.ts
+
1
−
0
View file @
665866a0
...
@@ -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
===
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment