Fix names inside check-review-status

The review status checked for exact and full matches, this means it
would not match if someone had their Gerrit name as NAME (username).

This fixes that.

Change-Id: I69bec7a42ad17424bd12afbba21fe99e85b96159
This commit is contained in:
Mohammed Naser 2020-08-12 10:52:23 -04:00
parent cf2872a1e8
commit 6b2e491df6
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ def get_votes_by_person(name, review):
for label in ['Code-Review', 'Rollcall-Vote']:
for vote in review['labels'].get(label, {}).get('all', []):
voter = vote.get('name', '')
if voter == name:
if voter.startswith(name):
yield vote