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:
parent
d3570b6442
commit
1a472e85b4
@ -54,9 +54,9 @@ class Gerrit:
|
||||
def list_messages(self, change):
|
||||
data = self.get(f'/a/changes/{change}/messages')
|
||||
for msg in data:
|
||||
name = msg['real_author'].get('name')
|
||||
username = msg['real_author'].get('username')
|
||||
email = msg['real_author'].get('email')
|
||||
name = msg['author'].get('name')
|
||||
username = msg['author'].get('username')
|
||||
email = msg['author'].get('email')
|
||||
date = msg['date']
|
||||
msgid = msg['id']
|
||||
print(BREAK)
|
||||
|
Loading…
Reference in New Issue
Block a user