changeset 5409ef2afa34 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=5409ef2afa34
description:
        Add group name to title regexp

        It gives more information when used in message error.

        issue9671
        review296411002
diffstat:

 reviewbot.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 56d612556fe9 -r 5409ef2afa34 reviewbot.py
--- a/reviewbot.py      Sun Sep 27 16:47:31 2020 +0200
+++ b/reviewbot.py      Thu Oct 08 22:12:00 2020 +0200
@@ -16,7 +16,8 @@
 import lxml.objectify
 import requests
 
-TITLE_FORMAT = re.compile(r'^([A-Za-z_][\w\.-]+)( [0-9.]+)?:')
+TITLE_FORMAT = re.compile(
+    r'^(?P<repository>[A-Za-z_][\w\.-]+)(?P<version> [0-9.]+)?:')
 ISSUE_FORMAT = re.compile(
     r'(?:#|\bissue|\bbug)\s*(?P<issue_id>[0-9]{4,})', re.I)
 CODEREVIEW_URL = 'https://codereview.tryton.org'

Reply via email to