‘send_changelog.py’: Insert newline after each bullet point

This commit is contained in:
Patryk Michalik
2021-06-04 16:13:27 +02:00
parent 611985105d
commit 50b68adeeb
+2
View File
@@ -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''')