mr create only adds the last label when multiple labels are specified
Checklist
-
I'm using the latest version of the extension (Run glab --version
)- Extension version: glab version 1.30.0 (2023-05-19)
-
Operating system and version: Mac OS 13.4 (22F66) -
Gitlab.com or self-managed instance? gitlab.com -
GitLab version (if self-managed) GitLab version here(Use theversion
endpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed glab auth status
to check for authentication issues
Summary
mr create
only adds the last label when multiple labels are specified
Steps to reproduce
glab mr create --fill --fill-commit-body --web -a me --label "category1::label1","category2::label2","category3::label3"
What is the current bug behavior?
MR is created, but issue description is the below, with no spaces in between labels. As a result, only the last is added
/label ~"category1::label1"~"category2::label2"~"category3::label3"
/assign me
What is the expected correct behavior?
A space is added between the labels to produce:
/label ~"category1::label1" ~"category2::label2" ~"category3::label3"
/assign me
Relevant logs and/or screenshots
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (9/9), 699 bytes | 699.00 KiB/s, done.
Total 9 (delta 7), reused 0 (delta 0), pack-reused 0
remote:
remote: To create a merge request for branchName, visit:
remote: https://gitlab.com/org/area/repo/-/merge_requests/new?merge_request%5Bsource_branch%5D=branchName
remote:
To gitlab.com:org/area/repo.git
f8b329e9e41..15770d99917 HEAD -> branchName
Opening gitlab.com/org/area/repo/-/merge_requests/new in your browser.
Possible fixes
- Add space between labels