Skip to content

Commit 1870c66

Browse files
committed
Revert "Add respectLatest configuration to Launchpad types and config"
This reverts commit aefd42c.
1 parent aefd42c commit 1870c66

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

buddy-bot.config.ts

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

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 = {
414
repository: {
515
owner: 'stacksjs',
616
name: 'launchpad',
@@ -34,6 +44,10 @@ const config: BuddyBotConfig = {
3444
// Example: 'packages/test-*/**', '**/*test-envs/**', 'apps/legacy/**'
3545
'packages/launchpad/test/fixtures/pkgx.yml', // Ignore test fixtures that use 'latest'
3646
],
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)
3751
},
3852
verbose: false,
3953
}

packages/launchpad/src/config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ export const defaultConfig: LaunchpadConfig = {
5151
useRegistry: true,
5252
installMethod: 'curl',
5353
installPath: getDefaultInstallPath(),
54-
// Buddy Bot configuration
55-
buddyBot: {
56-
respectLatest: process.env.BUDDY_BOT_RESPECT_LATEST === 'false' ? false :
57-
process.env.BUDDY_BOT_RESPECT_LATEST === 'true' ? true :
58-
null, // null means use default behavior (true)
59-
},
6054
services: {
6155
enabled: process.env.LAUNCHPAD_SERVICES_ENABLED !== 'false',
6256
dataDir: process.env.LAUNCHPAD_SERVICES_DATA_DIR || path.join(homedir(), '.local', 'share', 'launchpad', 'services'),

packages/launchpad/src/types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ export interface LaunchpadConfig {
6666
shellDeactivationMessage?: string
6767
useRegistry?: boolean
6868
installMethod?: string
69-
// Buddy Bot configuration
70-
buddyBot?: {
71-
respectLatest?: boolean | null // Nullable, defaults to true - don't create PRs for packages set to 'latest'
72-
}
7369
services?: {
7470
enabled?: boolean
7571
autoStart?: boolean

0 commit comments

Comments
 (0)