Creating MR with related-issue and title, overwrites the title
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: 1.22.0-186-g5ddf81e
-
Operating System and version: _MacOS Monterey zsh 5.8.1 (x86_64-apple-darwin21.0)
Summary
Steps to reproduce
glab version 1.22.0-186-g5ddf81e (2022-11-16)
glab mr create --title "foo" --related-issue 1
What is the current bug behavior?
MR title is Resolve "issue title"
What is the expected correct behavior?
MR title should be foo
Possible fixes
https://gitlab.com/gitlab-org/cli/-/blob/main/commands/mr/create/mr_create.go#L291
Need to not set a title if it is already set when there is a RelatedIssue
Edited by Jay McCure