Commit graph

23 commits

Author SHA1 Message Date
nils måsén
cc40a3c3a7 simplify legacy notifications
removes all code related to log levels and title, since that is not used anyway
this also gets rid of slackrus dependency
2022-09-07 16:14:00 +02:00
nils måsén
7579740d38 use combined flags for notifications 2022-09-07 15:05:48 +02:00
nils måsén
7900471f88
feat: add porcelain output (#1337)
* feat: add porcaline output

* feat(du-cli): add create-stale action

add create-stale action

Signed-off-by: nils måsén

* test(flags): add alias tests

* fix stray format string ref

* fix shell liniting problems

* feat(du-cli): remove created images

* add test for common template

* fix interval/schedule logic

* use porcelain arg as template version

* fix editor save artifacts

* use simpler v1 template

Signed-off-by: nils måsén
2022-08-14 10:11:31 +02:00
nils måsén
aa02d8d31b
feat(notifications): add title field to template data (#1125) 2022-01-05 12:08:47 +01:00
nils måsén
1d59fb83dd
feat(notifications): support delayed sending (#1142) 2022-01-05 09:31:01 +01:00
nils måsén
e3dd8d688a
Session report collection and report templates (#981)
* wip: notification stats

* make report notifications optional

* linting/documentation fixes

* linting/documentation fixes

* merge types.Container and container.Interface

* smaller naming/format fixes

* use typed image/container IDs

* simplify notifier and update tests

* add missed doc comments

* lint fixes

* remove unused constructors

* rename old/new current/latest
2021-06-27 09:05:01 +02:00
Amir Zarrinkafsh
dc12a1ac7f
feat: allow hostname override for notifiers (#994)
* feat: allow hostname override for email notifier

As it currently stands all notifiers utilise `os.Hostname` to populate their titles/subjects.

When utilising Docker with a bridged network if you set the hostname for a container to an external DNS hostname Docker's internal DNS resolver will override said hostname for all containers within the bridged network.

This change allows a user to specify what hostname should be represented in the email notifications without having to change the `os.Hostname`.

* feat: allow custom hostname for all notifiers

* docs: adjust notification hostname flag
2021-06-24 00:29:20 +02:00
nils måsén
738215a1f7
Update Shoutrrr to v0.4 (#810) 2021-03-13 08:58:11 +01:00
nils måsén
40ab6fd5ba
Fix notifications and old instance cleanup (#748)
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-01-10 11:12:54 +01:00
Simon Aronsson
35490c853d
cherrypick notification changes from #450 (#745) 2021-01-06 20:06:56 +01:00
Simon Aronsson
8b81fbd48d
Revert "feat(config): swap viper and cobra for config (#684)"
This reverts commit ff8cb884a0.
2020-12-21 23:08:23 +01:00
nils måsén
ff8cb884a0
feat(config): swap viper and cobra for config (#684) 2020-12-21 15:17:45 +01:00
Simon Aronsson
a7a28ec984
fix fmt and vetting issues 2020-10-03 22:25:17 +02:00
Cédric Finance
fdecd40189
Make sure all shoutrrr notifications are sent (#564) 2020-08-08 22:55:51 +02:00
nils måsén
46f43764d2
fix(email): always use configured delay for notifications (#536) 2020-05-09 19:34:18 +02:00
Simon Aronsson
15a9281624 feat: add support for multiple email recipients 2020-01-10 22:30:52 +01:00
Simon Aronsson
ea596ea747 fix some var ref errors 2019-11-17 11:19:57 +01:00
Max H
fd2a006c6b
Update email.go 2019-10-15 16:41:40 +02:00
Max H
505a5ec715
Update email.go 2019-10-09 09:25:24 +02:00
Max H
220dc5add4
Update email.go 2019-10-09 09:20:07 +02:00
Max H
5246d1a20e
Update email.go
Added SubjectTag as variable
2019-10-09 09:18:39 +02:00
Simon Aronsson
ce6ba0801f feature: add optional email delay
resolves #256
2019-08-25 13:14:02 +02:00
Simon Aronsson
a425bf1024 refactor: move actions into internal 2019-07-21 22:22:30 +02:00
Renamed from notifications/email.go (Browse further)