Merge "Store project name in ref-replicated events" into feature/zuulv3

This commit is contained in:
Jenkins 2017-04-05 18:45:34 +00:00 committed by Gerrit Code Review
commit 64bf6cf0d8
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ class GerritEventConnector(threading.Thread):
event.ref = refupdate.get('refName')
event.oldrev = refupdate.get('oldRev')
event.newrev = refupdate.get('newRev')
if event.project_name is None:
# ref-replica* events
event.project_name = data.get('project')
# Map the event types to a field name holding a Gerrit
# account attribute. See Gerrit stream-event documentation
# in cmd-stream-events.html