Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: take care about the review
  • Loading branch information
Tchoupinax committed Oct 6, 2024
commit 7af8222e6eb2ca221b3b54d78d2773798e7b9b27
12 changes: 6 additions & 6 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ export async function runVersion({
await exec('git', ['fetch', 'origin', currentBranch])
await gitUtils.reset(`origin/${currentBranch}`)

const labels = getOptionalInput('labels')
?.split(',')
.map(x => x.trim())

const versionsByDirectory = await getVersionsByDirectory(cwd)

if (script) {
Expand Down Expand Up @@ -313,9 +317,7 @@ ${
{
description: await mrBodyPromise,
removeSourceBranch,
labels: getOptionalInput('labels')
?.split(',')
.map(x => x.trim()),
labels,
},
)
} else {
Expand All @@ -324,9 +326,7 @@ ${
title: finalMrTitle,
description: await mrBodyPromise,
removeSourceBranch,
labels: getOptionalInput('labels')
?.split(',')
.map(x => x.trim()),
labels,
})
}
}