Skip to content

Pushover: support URL parameter #235

Open
@oransterf

Description

@oransterf

Using the pushover notifier works really well and it even embeds a thumbnail in the notification but it would be nice to support the url parameter for pushover (similar to ntfy's action URL) so it's easier to open the review url. Could also use url_title...

For example:

// Create new message
title := renderMessage(config.ConfigData.Alerts.General.Title, event, "title", "Pushover")
notif := &pushover.Message{
Message: message,
Title: title,
Priority: profile.Priority,
Sound: profile.Sound,
HTML: true,
TTL: time.Duration(profile.TTL) * time.Second,
}

to

notif := &pushover.Message{
	Message:  message,
	Title:    title,
	Priority: profile.Priority,
	Sound:    profile.Sound,
	HTML:     true,
	TTL:      time.Duration(profile.TTL) * time.Second,
        URL:      event.Extra.ReviewLink,
        URLTitle: "Review Event",
}

Thank you!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions