grep-merges: support grepping by team name (full name match)

Signed-off-by: Steve Langasek <steve.langasek@ubuntu.com>
This commit is contained in:
Steve Langasek 2019-05-07 18:24:07 -07:00
parent 3bef7f999b
commit fec29f22bc
2 changed files with 12 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,8 +1,14 @@
ubuntu-dev-tools (0.167) UNRELEASED; urgency=medium
[ Colin Watson ]
* syncpackage:
+ Support wildcards in sync-blacklist (LP: #1807992).
[ Steve Langasek ]
* grep-merges:
+ support grepping by team name (full name match) now that MoM exposes
this
-- Colin Watson <cjwatson@ubuntu.com> Tue, 11 Dec 2018 16:39:00 +0000
ubuntu-dev-tools (0.166) unstable; urgency=medium

View File

@ -66,8 +66,13 @@ def main():
author = merge['user']
if merge.get('uploader'):
uploader = '(%s)' % merge['uploader']
try:
teams = merge['teams']
except:
teams = []
pretty_uploader = u'{} {}'.format(author, uploader)
if match is None or match in package or match in author or match in uploader:
if match is None or match in package or match in author or match in uploader or match in teams:
print '%s\t%s' % (package.encode("utf-8"), pretty_uploader.encode("utf-8"))