diff --git a/ciwatch/events.py b/ciwatch/events.py index b2f2dc2..aebe7ba 100644 --- a/ciwatch/events.py +++ b/ciwatch/events.py @@ -45,7 +45,7 @@ def _process_event(event): # Find all the CIs voting in this comment lines = comment.splitlines() event['ci-status'] = {} - pipeline = is_jenkins_pipeline(lines[0]) + pipeline = is_jenkins_pipeline(lines[2]) if pipeline is not None: event["author"]["name"] = event["author"]["name"] + ' ' + pipeline for line in lines: diff --git a/ciwatch/templates/project.html.jinja b/ciwatch/templates/project.html.jinja index 96a0cc6..fed371f 100644 --- a/ciwatch/templates/project.html.jinja +++ b/ciwatch/templates/project.html.jinja @@ -49,7 +49,7 @@ {% for patch_set in patch_sets %} {% if patch_set.verified %} - {% elif patch_set.verified is not none and not patch_set.verfied %} + {% elif patch_set.verified is not none %} {% else %}