parent
280547a85f
commit
a0eaafc12e
1 changed files with 3 additions and 1 deletions
|
@ -35,11 +35,13 @@ class MergeRequests(BaseGitCommand):
|
|||
commit(f'"Add sources ({submission.branch} {submission.login})"')
|
||||
push("origin", submission.branch)
|
||||
|
||||
mail = f"<details>\n<summary>Mail</summary>\n\n<pre>{submission.get_mail()}</pre></details>"
|
||||
|
||||
self.gitlab.post_mr(
|
||||
source_branch=submission.branch,
|
||||
target_branch="master",
|
||||
title=f"[{submission.homework}{'-opravne' if submission.correction else ''}] {submission.login}",
|
||||
description=submission.get_mail(),
|
||||
description=mail,
|
||||
labels=submission.homework,
|
||||
remove_source_branch="true",
|
||||
assignee_ids=["1772"],
|
||||
|
|
Reference in a new issue