Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .changeset/green-phones-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'changesets-gitlab': patch
---

feat: update labels on update merge request
9 changes: 6 additions & 3 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,6 +326,7 @@ ${
title: finalMrTitle,
description: await mrBodyPromise,
removeSourceBranch,
labels,
})
}
}