From 50b68adeebdf0ef1944b71bcd41f6d9f03893f1f Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Fri, 4 Jun 2021 16:13:27 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=98send=5Fchangelog.py=E2=80=99:=20Insert?= =?UTF-8?q?=20newline=20after=20each=20bullet=20point?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- send_changelog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/send_changelog.py b/send_changelog.py index 7bb6912eb0..4b606e2ebd 100644 --- a/send_changelog.py +++ b/send_changelog.py @@ -13,6 +13,8 @@ message = '' for index, commit in enumerate(commits): commit_message = commit.message.replace('\n', '').replace('_', '\\_') + if (index != 0): + message += '\n' message += f'''• [{repository.git.rev_parse(commit.hexsha, short=7)}](https://github.com/LawnchairLauncher/lawnchair/commit/{commit.hexsha}): {commit_message}''' requests.get(f'''https://api.telegram.org/bot{telegram_ci_bot_token}/sendMessage?chat_id={telegram_ci_channel_id}&parse_mode=Markdown&text={message}&disable_web_page_preview=true''') \ No newline at end of file