From 6b2e491df60cf6f5f86e17a7d7c550e767ef2dbe Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 12 Aug 2020 10:52:23 -0400 Subject: [PATCH] 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 --- tools/check_review_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_review_status.py b/tools/check_review_status.py index 643fd1591..f13eb84e9 100755 --- a/tools/check_review_status.py +++ b/tools/check_review_status.py @@ -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