add patch to add fedmsg block events to koji in staging only for now. Many thanks to vrutkovs. https://pagure.io/fedora-infrastructure/issue/3960

This commit is contained in:
Kevin Fenzi 2017-11-06 21:27:52 +00:00
parent cb6772b847
commit 8484ed6962

View file

@ -33,6 +33,17 @@ def get_message_body(topic, *args, **kws):
if topic == 'package.list.change':
msg['tag'] = kws['tag']['name']
msg['package'] = kws['package']['name']
{% if env == 'staging' %}
msg['action'] = kws['action']
if 'owner' in kws:
msg['owner'] = kojihub.get_user(kws['owner'])['name']
else:
msg['owner'] = None
msg['block'] = kws.get('block', None)
msg['extra_arches'] = kws.get('extra_arches', None)
msg['force'] = kws.get('force', None)
msg['update'] = kws.get('update', None)
{% endif %}
elif topic == 'task.state.change':
info = kws['info']