Skip to content

Commit 1810ac5

Browse files
committed
chore: properly calculate labels
1 parent 34e274b commit 1810ac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/buddy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Buddy {
183183
this.logger.info(`🔄 Updates differ, will update existing PR with new content`)
184184

185185
// Generate dynamic labels for the update
186-
const dynamicLabels = this.generatePRLabels(group)
186+
const dynamicLabels = prGenerator.generateLabels(group)
187187

188188
// Update existing PR with new content
189189
await gitProvider.updatePullRequest(existingPR.number, {
@@ -278,8 +278,8 @@ export class Buddy {
278278
// Commit changes
279279
await gitProvider.commitChanges(branchName, group.title, packageJsonUpdates)
280280

281-
// Generate dynamic labels based on update types
282-
const dynamicLabels = this.generatePRLabels(group)
281+
// Generate dynamic labels based on update types and package types
282+
const dynamicLabels = prGenerator.generateLabels(group)
283283

284284
// Create pull request
285285
const pr = await gitProvider.createPullRequest({

0 commit comments

Comments
 (0)