# HG changeset patch # User Marcin Kuzminski # Date 2016-10-04 21:12:00 # Node ID b9b94af513e750ddebf9081bd3b395051e19216e # Parent f30d941107ba26a984469bf8f5d2ce18cfcacb6d integrations: use consistent formatting of user in slack. diff --git a/rhodecode/integrations/types/slack.py b/rhodecode/integrations/types/slack.py --- a/rhodecode/integrations/types/slack.py +++ b/rhodecode/integrations/types/slack.py @@ -173,7 +173,7 @@ class SlackIntegrationType(IntegrationTy return (textwrap.dedent( ''' - {user} commented on pull request <{pr_url}|#{number}> - {pr_title}: + *{user}* commented on pull request <{pr_url}|#{number}> - {pr_title}: >>> {comment_status}{comment_text} ''').format( comment_status=comment_status, @@ -208,7 +208,7 @@ class SlackIntegrationType(IntegrationTy }.get(event.__class__, str(event.__class__)) return ('Pull request <{url}|#{number}> - {title} ' - '{action} by {user}').format( + '`{action}` by *{user}*').format( user=data['actor']['username'], number=data['pullrequest']['pull_request_id'], url=data['pullrequest']['url'],