diff --git a/commands/update_assignees.py b/commands/update_assignees.py index 5cba0da..be51c61 100644 --- a/commands/update_assignees.py +++ b/commands/update_assignees.py @@ -10,4 +10,4 @@ class UpdateAssignees(BaseCommand): iid = get_mrs_for_branch(self.branch)[0]["iid"] print(f"{login} @ {self.branch} : {iid}") - set_assignees(iid, ["39", "1772"]) \ No newline at end of file + set_assignees(iid, [39, 1772]) diff --git a/gitlab.py b/gitlab.py index e4237f2..255cae8 100644 --- a/gitlab.py +++ b/gitlab.py @@ -58,7 +58,7 @@ def merge_mr(iid): def set_assignees(iid, assignee_ids): - params = {"assignee_ids": assignee_ids} + params = {"assignee_ids[]": assignee_ids} headers = {"Private-Token": TOKEN} with requests.put(