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:
parent
cb6772b847
commit
8484ed6962
1 changed files with 11 additions and 0 deletions
|
@ -33,6 +33,17 @@ def get_message_body(topic, *args, **kws):
|
||||||
if topic == 'package.list.change':
|
if topic == 'package.list.change':
|
||||||
msg['tag'] = kws['tag']['name']
|
msg['tag'] = kws['tag']['name']
|
||||||
msg['package'] = kws['package']['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':
|
elif topic == 'task.state.change':
|
||||||
info = kws['info']
|
info = kws['info']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue