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

15 lines
409 B
Python
Raw Normal View History

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