Skip to content

Commit ec88f04

Browse files
committed
Revert "Make respectLatest nullable with default true"
This reverts commit ee5f866.
1 parent 1870c66 commit ec88f04

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

buddy-bot.config.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
import type { BuddyBotConfig } from 'buddy-bot'
22

3-
// Extended configuration with nullable respectLatest
4-
interface ExtendedBuddyBotConfig extends BuddyBotConfig {
5-
packages?: {
6-
strategy?: string
7-
ignore?: string[]
8-
ignorePaths?: string[]
9-
respectLatest?: boolean | null // Nullable, defaults to true
10-
}
11-
}
12-
13-
const config: ExtendedBuddyBotConfig = {
3+
const config: BuddyBotConfig = {
144
repository: {
155
owner: 'stacksjs',
166
name: 'launchpad',
@@ -44,10 +34,8 @@ const config: ExtendedBuddyBotConfig = {
4434
// Example: 'packages/test-*/**', '**/*test-envs/**', 'apps/legacy/**'
4535
'packages/launchpad/test/fixtures/pkgx.yml', // Ignore test fixtures that use 'latest'
4636
],
47-
// Configuration for respecting 'latest' versions (nullable, defaults to true)
48-
respectLatest: process.env.BUDDY_BOT_RESPECT_LATEST === 'false' ? false :
49-
process.env.BUDDY_BOT_RESPECT_LATEST === 'true' ? true :
50-
null, // null means use default behavior (true)
37+
// Configuration for respecting 'latest' versions
38+
respectLatest: true, // Don't create PRs for packages set to 'latest'
5139
},
5240
verbose: false,
5341
}

0 commit comments

Comments
 (0)