File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { BuddyBotConfig } from 'buddy-bot'
2
2
3
- const config : BuddyBotConfig = {
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 = {
4
14
repository : {
5
15
owner : 'stacksjs' ,
6
16
name : 'launchpad' ,
@@ -34,8 +44,10 @@ const config: BuddyBotConfig = {
34
44
// Example: 'packages/test-*/**', '**/*test-envs/**', 'apps/legacy/**'
35
45
'packages/launchpad/test/fixtures/pkgx.yml' , // Ignore test fixtures that use 'latest'
36
46
] ,
37
- // Configuration for respecting 'latest' versions
38
- respectLatest : true , // Don't create PRs for packages set to 'latest'
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)
39
51
} ,
40
52
verbose : false ,
41
53
}
You can’t perform that action at this time.
0 commit comments