From 1c6acce067c1190fab68e2ca5d4f50b284985a1a Mon Sep 17 00:00:00 2001 From: Yuriy Kirillov Date: Mon, 24 Aug 2026 12:40:32 +0200 Subject: [PATCH] fix: separate PR digest titles --- .github/actions/prepare-telegram-pr-message/prepare.py | 2 +- test/test_telegram_notifications.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/prepare-telegram-pr-message/prepare.py b/.github/actions/prepare-telegram-pr-message/prepare.py index 63f44d9..bd7dc3a 100644 --- a/.github/actions/prepare-telegram-pr-message/prepare.py +++ b/.github/actions/prepare-telegram-pr-message/prepare.py @@ -71,7 +71,7 @@ def format_digest(repository, pull_requests, now=None): for pull_request in pull_requests[:DIGEST_PR_LIMIT]: age = max(0, (now - parse_github_time(pull_request["createdAt"])).days) line = ( - f"{pull_request_link(pull_request)} *{escape_markdown(pull_request['title'])}* · " + f"{pull_request_link(pull_request)} · *{escape_markdown(pull_request['title'])}* · " f"{escape_markdown(author_login(pull_request))} · {age}d" ) remaining = len(pull_requests) - len(lines) - 1 diff --git a/test/test_telegram_notifications.py b/test/test_telegram_notifications.py index 4e62557..d46f3bf 100644 --- a/test/test_telegram_notifications.py +++ b/test/test_telegram_notifications.py @@ -100,8 +100,8 @@ def test_open_pull_request_digest_lists_at_most_ten_pull_requests(self): message = PR_TELEGRAM.format_digest("owner/repo", pull_requests) self.assertIn("12 open PRs", message) - self.assertIn("[PR 10](https://github.com/owner/repo/pull/10) *feat: add notifications*", message) - self.assertNotIn("[PR 11](https://github.com/owner/repo/pull/11) *feat: add notifications*", message) + self.assertIn("[PR 10](https://github.com/owner/repo/pull/10) · *feat: add notifications*", message) + self.assertNotIn("[PR 11](https://github.com/owner/repo/pull/11) · *feat: add notifications*", message) self.assertIn(r"[\.\.\.and 2 more](https://github.com/owner/repo/pulls)", message) def test_open_pull_request_digest_stays_within_telegram_limit(self):