always show commit_hash
This commit is contained in:
parent
4120c9c71d
commit
a73c3b4078
1 changed files with 2 additions and 4 deletions
|
@ -48,7 +48,6 @@ def main(msg, pipeline_state='complete', seed='empty'):
|
||||||
print('Unsupported msg version, ignoring')
|
print('Unsupported msg version, ignoring')
|
||||||
return
|
return
|
||||||
|
|
||||||
commit_hash_text = ''
|
|
||||||
# test complete messages
|
# test complete messages
|
||||||
if pipeline_state == 'complete':
|
if pipeline_state == 'complete':
|
||||||
done_states = {
|
done_states = {
|
||||||
|
@ -64,9 +63,6 @@ def main(msg, pipeline_state='complete', seed='empty'):
|
||||||
|
|
||||||
status = done_states[state]['api']
|
status = done_states[state]['api']
|
||||||
human_status = done_states[state]['human']
|
human_status = done_states[state]['human']
|
||||||
if 'commit_hash' in msg['artifact']:
|
|
||||||
commit_hash_text = ' for %s' % msg['artifact']['commit_hash'][:8]
|
|
||||||
|
|
||||||
# test running messages
|
# test running messages
|
||||||
elif pipeline_state == 'running':
|
elif pipeline_state == 'running':
|
||||||
status = 'pending'
|
status = 'pending'
|
||||||
|
@ -84,6 +80,8 @@ def main(msg, pipeline_state='complete', seed='empty'):
|
||||||
return
|
return
|
||||||
pr_id = str(msg['artifact']['id'])
|
pr_id = str(msg['artifact']['id'])
|
||||||
|
|
||||||
|
commit_hash_text = ' for %s' % msg['artifact']['commit_hash'][:8]
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'username': 'Fedora CI',
|
'username': 'Fedora CI',
|
||||||
'status': status,
|
'status': status,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue