Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='sentry-slack',
version='0.5.0',
version='0.5.1',
author='Matt Robenolt',
author_email='matt@ydekproductons.com',
url='https://github.com/getsentry/sentry-slack',
Expand Down
14 changes: 9 additions & 5 deletions src/sentry_slack/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ def notify(self, notification):
channel = (self.get_option('channel', project) or '').strip()

title = group.message_short.encode('utf-8')
if group.culprit:
culprit = group.culprit.encode('utf-8')
else:
culprit = None
title_link = group.get_absolute_url()
culprit = group.culprit.encode('utf-8') if group.culprit else None
project_name = get_project_full_name(project).encode('utf-8')

fields = []
Expand All @@ -170,6 +168,12 @@ def notify(self, notification):
'short': True,
})

fields.append({
'title': 'Issue Link',
'value': title_link,
'short': False,
})

if self.get_option('include_rules', project):
rules = []
for rule in notification.rules:
Expand Down Expand Up @@ -209,7 +213,7 @@ def notify(self, notification):
'attachments': [{
'fallback': '[%s] %s' % (project_name, title),
'title': title,
'title_link': group.get_absolute_url(),
'title_link': title_link,
'color': self.color_for_group(group),
'fields': fields,
}]
Expand Down