8000 Setting assignees list to merge request · Issue #1228 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
Setting assignees list to merge request #1228
Open
@ray66rus

Description

@ray66rus

Thanks for the great library. Unfortunatelly, I can't find a way to set multiple assignees to merge request. GitLab API supports this feature via assignee_ids field, but it seems that gitlab.v4.objects.MergeRequest object lacks this field. Could you please add the support for this feature (or, maybe, I just missed it somehow?).

PS: For now I fixed this with a quick hack:

attrs = (self._gitlab._objects.ProjectMergeRequestManager._update_attrs[1] + tuple(["assignee_ids"]))
self._gitlab._objects.ProjectMergeRequestManager._update_attrs = ((), attrs)

where self._gitlab is an instance of gitlab.Gitlab. Looks like it works :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0