mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-26 07:13:48 +01:00
Add hub link to notifiers
Send message as markdown for Gotify and Telegram notifiers
This commit is contained in:
@@ -44,6 +44,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
|
||||
Status string `json:"status"`
|
||||
Provider string `json:"provider"`
|
||||
Image string `json:"image"`
|
||||
HubLink string `json:"hub_link"`
|
||||
MIMEType string `json:"mime_type"`
|
||||
Digest digest.Digest `json:"digest"`
|
||||
Created *time.Time `json:"created"`
|
||||
@@ -53,6 +54,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
|
||||
Status: string(entry.Status),
|
||||
Provider: entry.Provider,
|
||||
Image: entry.Image.String(),
|
||||
HubLink: entry.Image.HubLink,
|
||||
MIMEType: entry.Manifest.MIMEType,
|
||||
Digest: entry.Manifest.Digest,
|
||||
Created: entry.Manifest.Created,
|
||||
|
||||
Reference in New Issue
Block a user