util: Add reviewers using account ID's when possible
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 2 Dec 2020 22:30:47 +0000 (14:30 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 22 Dec 2020 09:52:30 +0000 (09:52 +0000)
commit6da3e5748f36c909829b92121493500efdd76385
treee7180561b8da55ae872459b4b8a1916c71a0bfeb
parent350278b84d51bc4ec5c2ed7aa1bcdd22d3670078
util: Add reviewers using account ID's when possible

Currently, there are some accounts that cannot be added as a
reviewer due to unknown conflicts associated with the email address.

This commit adds the ability for the bot to use
ReviewerInfo._account_id when possible, and to use email addresses
otherwise.

To reduce the number of queries to the server, a json file will be
created in .data/ to store known account ID's.

Change-Id: I9887bec12d14279e61119a615687a339e3f9c994
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38236
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
util/gerrit-bot/bot.py
util/gerrit-bot/extract_gitcookies.py
util/gerrit-bot/gerrit.py
util/gerrit-bot/util.py