Fix gerrit-delete-comment script

The "real_author" key in may have been an artifact of local testing;
it appears "author" is what we want to use.

Change-Id: I0618412f5afc598eaa783b726d275e52131dc1a4
This commit is contained in:
James E. Blair 2024-02-06 10:29:15 -08:00
parent d3570b6442
commit 1a472e85b4

View File

@ -54,9 +54,9 @@ class Gerrit:
def list_messages(self, change): def list_messages(self, change):
data = self.get(f'/a/changes/{change}/messages') data = self.get(f'/a/changes/{change}/messages')
for msg in data: for msg in data:
name = msg['real_author'].get('name') name = msg['author'].get('name')
username = msg['real_author'].get('username') username = msg['author'].get('username')
email = msg['real_author'].get('email') email = msg['author'].get('email')
date = msg['date'] date = msg['date']
msgid = msg['id'] msgid = msg['id']
print(BREAK) print(BREAK)