Fix integer array for update of assignees
This commit is contained in:
parent
c6cd28cda3
commit
05155e183f
2 changed files with 2 additions and 2 deletions
|
@ -10,4 +10,4 @@ class UpdateAssignees(BaseCommand):
|
||||||
iid = get_mrs_for_branch(self.branch)[0]["iid"]
|
iid = get_mrs_for_branch(self.branch)[0]["iid"]
|
||||||
|
|
||||||
print(f"{login} @ {self.branch} : {iid}")
|
print(f"{login} @ {self.branch} : {iid}")
|
||||||
set_assignees(iid, ["39", "1772"])
|
set_assignees(iid, [39, 1772])
|
||||||
|
|
|
@ -58,7 +58,7 @@ def merge_mr(iid):
|
||||||
|
|
||||||
|
|
||||||
def set_assignees(iid, assignee_ids):
|
def set_assignees(iid, assignee_ids):
|
||||||
params = {"assignee_ids": assignee_ids}
|
params = {"assignee_ids[]": assignee_ids}
|
||||||
headers = {"Private-Token": TOKEN}
|
headers = {"Private-Token": TOKEN}
|
||||||
|
|
||||||
with requests.put(
|
with requests.put(
|
||||||
|
|
Reference in a new issue