Put mails in toggles

Closes #10
This commit is contained in:
Matej Focko 2020-05-26 14:03:58 +02:00
parent 280547a85f
commit a0eaafc12e
Signed by: mfocko
GPG key ID: 299B916A55682021

View file

@ -35,11 +35,13 @@ class MergeRequests(BaseGitCommand):
commit(f'"Add sources ({submission.branch} {submission.login})"') commit(f'"Add sources ({submission.branch} {submission.login})"')
push("origin", submission.branch) push("origin", submission.branch)
mail = f"<details>\n<summary>Mail</summary>\n\n<pre>{submission.get_mail()}</pre></details>"
self.gitlab.post_mr( self.gitlab.post_mr(
source_branch=submission.branch, source_branch=submission.branch,
target_branch="master", target_branch="master",
title=f"[{submission.homework}{'-opravne' if submission.correction else ''}] {submission.login}", title=f"[{submission.homework}{'-opravne' if submission.correction else ''}] {submission.login}",
description=submission.get_mail(), description=mail,
labels=submission.homework, labels=submission.homework,
remove_source_branch="true", remove_source_branch="true",
assignee_ids=["1772"], assignee_ids=["1772"],