From a0eaafc12e25bf2039f6abb53bc998b3dccbcdf5 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 26 May 2020 14:03:58 +0200 Subject: [PATCH] Put mails in toggles Closes #10 --- commands/merge_requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/merge_requests.py b/commands/merge_requests.py index dfd6c00..a251e55 100644 --- a/commands/merge_requests.py +++ b/commands/merge_requests.py @@ -35,11 +35,13 @@ class MergeRequests(BaseGitCommand): commit(f'"Add sources ({submission.branch} {submission.login})"') push("origin", submission.branch) + mail = f"
\nMail\n\n
{submission.get_mail()}
" + 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"],