From 34d5b9d1e677e4c19455673140697d0845e427b0 Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Sat, 5 Jun 2021 08:38:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=98send=5Fchangelog.py=E2=80=99:=20Tweak?= =?UTF-8?q?=20message=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- send_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send_changelog.py b/send_changelog.py index fe5bd9c2b3..01407ecc02 100644 --- a/send_changelog.py +++ b/send_changelog.py @@ -11,7 +11,7 @@ telegram_ci_channel_id = os.getenv('TELEGRAM_CI_CHANNEL_ID') repository = git.Repo('.') commits_range = f'{github_event_before}...{github_sha}' commits = list(repository.iter_commits(commits_range)) -message = f'🔨 [{len(commits)} new commits](https://github.com/{github_repo}/compare/{commits_range}) to lawnchair:11-dev:\n' +message = f'''🔨 [{len(commits)} new {'commit' if len(commits) == 1 else 'commits'}](https://github.com/{github_repo}/compare/{commits_range}) to `lawnchair:11-dev`:''' for commit in commits: commit_message = commit.message.split('\n')[0].replace('_', '\\_')