13 lines
310 B
Python
13 lines
310 B
Python
#!/usr/bin/env python3
|
|
|
|
|
|
from commands.base import BaseCommand
|
|
from gitlab import get_mrs_for_branch, merge_mr
|
|
from submission import Submission
|
|
|
|
|
|
class Merge(BaseCommand):
|
|
def exec(self, submission: Submission) -> None:
|
|
iid = get_mrs_for_branch(submission.branch)[0]["iid"]
|
|
|
|
merge_mr(iid)
|