DEV Community


Discussion on: Gitlab: Create merge requests from cli

farnabaz profile image
Ahad Birang Author

Unfortunately based on official docs there isn't any way to assign PR to a user at the time.

nigredotori profile image
Dmitry Polienko • Edited

You can pass slash commands as a part of the description, so having

/assign @someone
Enter fullscreen mode Exit fullscreen mode

as a part of the description did the trick for me. I'm not sure whether this is a bug or a feature, and whether it works with all GitLab and API versions.

UPD: Though do keep in mind that you can't submit multiline strings via push options, and as far as I can see, GitLab has no workaround that would work with slash commands. See this issue.