Changes on current `mr create` and `issue create` flow
I had a couple of thoughts about the current mr create
and issue create
flow and came up with these issues and suggested changes.
Issues
- Description step is not skippable for interactive mode
- Users are unable to preview the issue or merge request body as can be done on the UI
Suggested Changes
-
Make the description step skippable
$ glab mr create
? Title This is a test issue title
? Description (nano) [Enter to launch editor, s to skip]
-
Provide submit options to allow users either submit the MR via the CLI or continue in browser
orcancel
$ glab mr create
? Title This is a test title
? Body (nano) <Received>
? Submit? [Use arrows to move, type to filter]
> Yes
Continue in browser
Cancel
This will open the browser to a prefilled merge request with the title and body the user submitted. Similar flow for issue create
.
Note on Prefilling issue with url query parameters: gitlab-foss#19731 (comment 32449479)