diff --git a/README.md b/README.md index 1aa149b..a20c5b7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ notify: ``` {{ hook.Event.Title }}``` - {{ hook.Event.IssueURL }} + {{ hook.Event.WebURL }} to: my_team ``` diff --git a/internal/sentry/event_alert.go b/internal/sentry/event_alert.go index 36708aa..9eaab19 100644 --- a/internal/sentry/event_alert.go +++ b/internal/sentry/event_alert.go @@ -20,6 +20,7 @@ type EventAlert struct { Project int `json:"project"` URL string `json:"url"` Datetime Time `json:"datetime"` + WebURL string `json:"web_url"` } `json:"event"` Extracted struct { ProjectName string `json:"-"` diff --git a/sentry-notifier.yaml b/sentry-notifier.yaml index 4b41a69..9c3d3a8 100644 --- a/sentry-notifier.yaml +++ b/sentry-notifier.yaml @@ -23,5 +23,5 @@ notify: ``` {{ hook.Event.Title }}``` - {{ hook.Event.IssueURL }} + {{ hook.Event.WebURL }} to: my_team