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:
parent
cf2872a1e8
commit
6b2e491df6
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue