Create comment with skeleton of review (closes #15)
This commit is contained in:
parent
0dc92bf643
commit
a5b0ed9dc4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue