- % for commit in data['push']['commits']:
- ${commit['short_id']} by ${commit['author']} at ${commit['date']}
- ${commit['message_html']}
-
- % endfor
+ % if data['push']['commits']:
+ % for commit in data['push']['commits']:
+ ${commit['short_id']} by ${commit['author']} at ${commit['date']}
+ ${commit['message_html']}
+
+ % endfor
+ % else:
+ No commit data
+ % endif
|
@@ -146,7 +151,34 @@ repo_push_template_html = Template('''