diff --git a/commands/merge_requests.py b/commands/merge_requests.py index fd7b3be..667c87d 100644 --- a/commands/merge_requests.py +++ b/commands/merge_requests.py @@ -48,7 +48,7 @@ class MergeRequests(BaseGitCommand): mail = f"
\nMail\n\n
{submission.get_mail()}
" try: - self.gitlab.post_mr( + mr = self.gitlab.post_mr( source_branch=submission.branch, target_branch="master", title=f"[{submission.homework}{'-opravne' if submission.correction else ''}] {submission.login}", @@ -57,5 +57,6 @@ class MergeRequests(BaseGitCommand): remove_source_branch="true", assignee_ids=["1772"], ) + mr.comment(body="Summary\n=======\n\n# TODO\n\nDiff notes\n==========\n\n# TODO\n\nCorrection (YYYY/MM/DD)\n=======================\n\n# TODO") except: pass