Fix integer array for update of assignees

This commit is contained in:
Matej Focko 2019-11-23 16:51:30 +01:00
parent c6cd28cda3
commit 05155e183f
2 changed files with 2 additions and 2 deletions

View file

@ -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"])
set_assignees(iid, [39, 1772])

View file

@ -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(