From c565b2a31fcd4eaae18fb841b6b2f821919811eb Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 28 Nov 2024 11:11:25 -0500 Subject: [PATCH] bot: Make sure release messages get through. --- tools/buttfeed.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/buttfeed.py b/tools/buttfeed.py index ba38913be..823784e74 100755 --- a/tools/buttfeed.py +++ b/tools/buttfeed.py @@ -34,6 +34,11 @@ def get_entries(): if m: results.append((time.mktime(entry.get('updated_parsed')), name, entry.link, f'new issue #{m.group(1)}: {m.group(2)}')) continue + elif '/releases/' in entry.link: + m = re.match(r'(.*) released (.*?)', entry.title) + if m: + results.append((time.mktime(entry.get('updated_parsed')), name, entry.link, f'{m.group(1)} released {m.group(2)}')) + continue if entry.summary.startswith('.*?$\s*^([^\n]+)$', entry.summary, re.S | re.M): results.append((time.mktime(entry.get('updated_parsed')), name, m[0], m[1]))