You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webhook templates must render valid JSON. Email templates may render text or HTML. When `--public-url` is configured, templates can use `.App.PublicURL`, `.App.CheckInURL`, and `.App.StatusURL`.
165
+
Webhook templates must render valid JSON. Email templates may render text or HTML. When `--public-url` is configured, templates can use `.App.Version`, `.App.PublicURL`, `.App.CheckInURL`, and `.App.StatusURL`.
164
166
165
167
See [docs/templates.md](docs/templates.md) for built-in templates, template data, and helper functions.
Copy file name to clipboardExpand all lines: docs/notifications.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ And this creates an email target named `primary`:
23
23
24
24
If no notification targets are configured, Overdue still runs and records status, but sends no notifications.
25
25
26
-
Set `--public-url` when notification templates should include externally reachable Overdue links. The value is exposed as `.App.PublicURL`; `.App.CheckInURL` and `.App.StatusURL` are derived from it.
26
+
Set `--public-url` when notification templates should include externally reachable Overdue links. The value is exposed as `.App.PublicURL`; `.App.CheckInURL` and `.App.StatusURL` are derived from it.`.App.Version` is always available.
|`.Resolved`| bool |`true` for resolved notifications. |
64
64
|`.Title`| string | Rendered notification title. Available in body and subject templates. |
65
65
|`.Text`| string | Rendered notification text. Available in body templates. |
66
-
|`.App`| struct | Application link data derived from `--public-url`. Empty when no public URL is configured. |
66
+
|`.App`| struct | Application metadata and links. URL fields are empty when no public URL is configured.|
67
67
|`.CustomData`| map[string]string | Target-local custom data from `--webhook.<name>.custom-data` or `--email.<name>.custom-data`. |
68
68
69
-
`.App` contains `.App.PublicURL`, `.App.CheckInURL`, and `.App.StatusURL`. `--public-url` is the externally reachable base URL and may include a path prefix. `.App.CheckInURL` appends the configured check-in path, and `.App.StatusURL` appends `/status`.
69
+
`.App` contains `.App.Version`, `.App.PublicURL`, `.App.CheckInURL`, and `.App.StatusURL`. `--public-url` is the externally reachable base URL and may include a path prefix. `.App.CheckInURL` appends the configured path, and `.App.StatusURL` appends `/status`.
70
70
71
71
Custom data keys that are valid Go template identifiers can be read with dot notation, such as `.CustomData.channel`. Other keys can be read with `index`, such as `{{ index .CustomData "team-name" }}`.
0 commit comments