I didn't find an option to assign reviewers while creating MR.
As I see, gitlab REST API also doesn't have this option yet (should I also file an issue about it here?)
Traceback (most recent call last):
mr.save()
File "/XXXXXXXXXX/.venv/lib/python3.6/site-packages/gitlab/mixins.py", line 385, in save
server_data = self.manager.update(obj_id, updated_data, **kwargs)
File "XXXXXXXXXXXXX/.venv/lib/python3.6/site-packages/gitlab/exceptions.py", line 281, in wrapped_f
raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabUpdateError: 400: assignee_id, assignee_ids, description, labels, add_labels, remove_labels, milestone_id, remove_source_branch, allow_collaboration, allow_maintainer_to_push, squash, target_branch, title, state_event, discussion_locked are missing, at least one parameter must be provided
As a workaround for this, you can do the following:
# update the reviewers on the MRupdated_data=mr.manager.update(mr.get_id(), {'reviewer_ids': [1,2,3]})
# for completeness, update the object from the server responseifupdated_data:
mr._update_attrs(updated_data)
I didn't find an option to assign reviewers while creating MR.
As I see, gitlab REST API also doesn't have this option yet (should I also file an issue about it here?)