mirror of
https://github.com/crazy-max/diun.git
synced 2025-04-11 06:01:21 +00:00
Small typo
This commit is contained in:
parent
3abfe5c8e9
commit
6f845208d6
3 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 4.1.1 (2020/06/26)
|
||||
|
||||
* Small typo
|
||||
|
||||
## 4.1.0 (2020/06/26)
|
||||
|
||||
* Discord notifications (#110 #111)
|
||||
|
|
Binary file not shown.
Before ![]() (image error) Size: 16 KiB After ![]() (image error) Size: 16 KiB ![]() ![]() |
|
@ -53,7 +53,7 @@ func (c *Client) Send(entry model.NotifEntry) error {
|
|||
}
|
||||
|
||||
var textBuf bytes.Buffer
|
||||
textTpl := template.Must(template.New("discord").Parse(fmt.Sprintf(`Docker tag %s which you subscribed to through **{{ .Entry.Provider }}** provider has been {{ if (eq .Entry.Status "new") }}newly added{{ else }}updated{{ end }} on **myserver**.`, tagTpl)))
|
||||
textTpl := template.Must(template.New("discord").Parse(fmt.Sprintf(`Docker tag %s which you subscribed to through **{{ .Entry.Provider }}** provider has been {{ if (eq .Entry.Status "new") }}newly added{{ else }}updated{{ end }} on **{{ .Meta.Hostname }}**.`, tagTpl)))
|
||||
if err := textTpl.Execute(&textBuf, struct {
|
||||
Meta model.Meta
|
||||
Entry model.NotifEntry
|
||||
|
|
Loading…
Add table
Reference in a new issue