From 90306eb1efd28869e5605a7d8010778dea2e4b40 Mon Sep 17 00:00:00 2001 From: Stijn Mathysen Date: Fri, 9 Oct 2020 18:08:01 +0200 Subject: [PATCH] set correct groups indices to extract author name and email --- notify-webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify-webhook.py b/notify-webhook.py index 9c56554..6426cad 100755 --- a/notify-webhook.py +++ b/notify-webhook.py @@ -228,8 +228,8 @@ def get_revisions(old, new, head_commit=False): # split up author m = EMAIL_RE.match(props['author']) if m: - props['name'] = m.group(1) - props['email'] = m.group(2) + props['name'] = m.group(2) + props['email'] = m.group(3) else: props['name'] = 'unknown' props['email'] = 'unknown'