MR use user names for `mr create` assignee flag
Created by: zemzale
Is your feature request related to a problem? Please describe.
When creating mr using --assignee
flag it expects the User ID as in the number id
.
This is not really user friendly since I am not a robot and it's hard for me to remember even my own numeric ID, let alone other peoples.
We could change this to behave just like in mr update
where we expect the user name, instead of the ID.
For that matter we could change this in issue create
too, and maybe some other place that I am missing.
Optionally I think we should fail if the assignee is not found, because there is no indication to the user that he used the wrong assignee ID/name and the MR didn't get assigned. I had done this a few times, with thinking that MR is assigned to someone for review when in reality it no assignes.
Describe the solution you'd like
- Expect username to be passed to
--assignee
- Fetch the user from API by it's username and use that ID to in MR creation
- (maybe) Fail if the user is not found