This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
pushee/commands/update_assignees.py
2019-12-12 12:15:52 +01:00

13 lines
380 B
Python

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