Skip to content

Commit

Permalink
src/renovateSanityCheck.js: fix logic condition
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Dec 19, 2024
1 parent 5a09159 commit 652a988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renovateSanityCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default async function renovateSanityCheck ({
continue
}

if (!renovateConfig.extends?.includes(`local>${org}/renovate-config`) || !renovateConfig.extends?.includes('local>brave/renovate-config')) {
if (!(renovateConfig.extends && (renovateConfig.extends.includes(`local>${org}/renovate-config`) || renovateConfig.extends.includes('local>brave/renovate-config')))) {
const message = `https://github.com/${org}/${repo.name} does not extend the company renovate config!`
if (debug) console.log(message)

Expand Down

0 comments on commit 652a988

Please sign in to comment.