##// END OF EJS Templates
slack-integration: added number of commits inside the message.
marcink -
r1498:966a4df8 default
parent child Browse files
Show More
@@ -263,7 +263,7 b' class SlackIntegrationType(IntegrationTy'
263
263
264 repo_push_template = Template(textwrap.dedent(r'''
264 repo_push_template = Template(textwrap.dedent(r'''
265 %for branch, branch_commits in branches_commits.items():
265 %for branch, branch_commits in branches_commits.items():
266 branch: <${branch_commits['branch']['url']}|${branch_commits['branch']['name']}>
266 ${len(branch_commits['commits'])} ${'commit' if len(branch_commits['commits']) == 1 else 'commits'} on branch: <${branch_commits['branch']['url']}|${branch_commits['branch']['name']}>
267 %for commit in branch_commits['commits']:
267 %for commit in branch_commits['commits']:
268 `<${commit['url']}|${commit['short_id']}>` - ${commit['message_html_title']|html_to_slack_links}
268 `<${commit['url']}|${commit['short_id']}>` - ${commit['message_html_title']|html_to_slack_links}
269 %endfor
269 %endfor
General Comments 0
You need to be logged in to leave comments. Login now