File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' changesets-gitlab ' : minor
3+ ---
4+
5+ Allow adding custom labels to the version package Gitlab Merge Request
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ GitLab CI cli for [changesets](https://github.com/atlassian/changesets) like its
3030- ` INPUT_REMOVE_SOURCE_BRANCH ` - Enables the merge request "Delete source branch" checkbox. Default false.
3131- ` INPUT_TARGET_BRANCH ` -> The merge request target branch. Defaults to current branch
3232- ` INPUT_CREATE_GITLAB_RELEASES ` - A boolean value to indicate whether to create Gitlab releases after publish or not. Default true.
33+ - ` INPUT_LABELS ` - A comma separated string of labels to be added to the version package Gitlab Merge request
3334
3435### Outputs
3536
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ import * as context from './context.js'
1313import * as gitUtils from './gitUtils.js'
1414import readChangesetState from './readChangesetState.js'
1515import {
16- getChangelogEntry ,
1716 execWithOutput ,
1817 getChangedPackages ,
19- sortTheThings ,
18+ getChangelogEntry ,
19+ getOptionalInput ,
2020 getVersionsByDirectory ,
21+ sortTheThings ,
2122} from './utils.js'
2223
2324import { createApi } from './index.js'
312313 {
313314 description : await mrBodyPromise ,
314315 removeSourceBranch,
316+ labels : getOptionalInput ( 'labels' )
317+ ?. split ( ',' )
318+ . map ( x => x . trim ( ) ) ,
315319 } ,
316320 )
317321 } else {
You can’t perform that action at this time.
0 commit comments