[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 15 11:21:08 UTC 2021
esc-reporting/esc-analyze.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 95b388430de6f8d75c5572ca5c2fb31015c6588e
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Jul 15 12:55:37 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Jul 15 13:16:04 2021 +0200
esc-analyze: Exclude feature and distro branches in reviewers
Change-Id: Idaa3bad9d0396f2fea1de17da7849d48df30652f
diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index a306323..78b43a7 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -326,11 +326,13 @@ def analyze_mentoring():
statList['people'][ownerEmail]['isContributor'] = True
util_build_period_stat(xDate, ownerEmail, 'gerrit', dataTarget=row['status'], peopleTarget='owner')
- for i in 'Verified', 'Code-Review':
- for x in row['labels'][i]['all']:
- xEmail = util_check_mail(x['name'], x['email'])
- if xEmail != ownerEmail:
- util_build_period_stat(xDate, xEmail, 'gerrit', dataTarget='reviewed', peopleTarget='reviewer')
+ # Exclude feature and distro branches
+ if row['branch'] == 'master' or row['branch'].startswith('libreoffice-'):
+ for i in 'Verified', 'Code-Review':
+ for x in row['labels'][i]['all']:
+ xEmail = util_check_mail(x['name'], x['email'])
+ if xEmail != ownerEmail:
+ util_build_period_stat(xDate, xEmail, 'gerrit', dataTarget='reviewed', peopleTarget='reviewer')
print(" from " + statOldDate.strftime('%Y-%m-%d') + " to " + statNewDate.strftime('%Y-%m-%d'))
print("mentoring: analyze git", end="", flush=True)
More information about the Libreoffice-commits
mailing list