From e320de04397726dbc14492caaf5a0964cd4a23a3 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 11 Jun 2024 15:24:09 +0200 Subject: [PATCH] [FIX] runbot_merge: handle gh comments ending with newlines Regex `$` apparently does not quite strip that out. --- runbot_merge/models/pull_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index e1a957c6..4526faa5 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -632,7 +632,7 @@ class PullRequests(models.Model): cmds: List[commands.Command] = [ ps for line in commandlines - for ps in commands.Parser(line) + for ps in commands.Parser(line.rstrip()) ] except Exception as e: _logger.info(