From a5b0ed9dc48c9357d61d29af1194d6237ed76e9f Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 8 Jun 2020 18:04:01 +0200 Subject: [PATCH] Create comment with skeleton of review (closes #15) --- commands/merge_requests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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