Create comment with skeleton of review (closes #15)

This commit is contained in:
Matej Focko 2020-06-08 18:04:01 +02:00
parent 0dc92bf643
commit a5b0ed9dc4
Signed by: mfocko
GPG key ID: 299B916A55682021

View file

@ -48,7 +48,7 @@ class MergeRequests(BaseGitCommand):
mail = f"<details>\n<summary>Mail</summary>\n\n<pre>{submission.get_mail()}</pre></details>"
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