14 lines
409 B
Python
14 lines
409 B
Python
#!/usr/bin/env python3
|
|
|
|
|
|
from commands.base import BaseCommand
|
|
from gitlab import get_mrs_for_branch, set_assignees
|
|
from submission import Submission
|
|
|
|
|
|
class UpdateAssignees(BaseCommand):
|
|
def exec(self, submission: Submission) -> None:
|
|
iid = get_mrs_for_branch(submission.branch)[0]["iid"]
|
|
|
|
print(f"{submission.login} @ {submission.branch} : {iid}")
|
|
set_assignees(iid, [39, 1772])
|