Notify link=: a stage's public/ file sets the phone tap target
A stage's notify block may name `link=<pattern>` (validated like `open=`). When the hook fires, the newest public/ match is read (at most 4 KiB); its first non-empty line, if an absolute http(s) URL ntfy accepts as a click, becomes the ntfy Click and the app notification click, with the run kept as the app's run action and ntfy's browser view. A missing file or invalid URL keeps today's tap target and is noted on the receipt diagnostic. Android opens such an http(s) click in the browser (after clearing the notification) instead of handing it to Flutter as a route.
This commit is contained in:
@@ -233,6 +233,7 @@ whose branch is on `main`, the server removes the tree and branch; anything
|
||||
else (a failed run, unlanded commits, stray files) is kept for recovery.
|
||||
|
||||
The `notify` block accepts `on`, optional legacy `destination`, optional
|
||||
`artifacts=markdown|files`, and optional `open=<relative-glob>`. `open` selects
|
||||
an artifact in the run's shared `public/`; without it, one and only one regular
|
||||
file there is selected automatically.
|
||||
`artifacts=markdown|files`, optional `open=<relative-glob>` and optional
|
||||
`link=<relative-glob>`. `open` selects an artifact in the run's shared `public/`;
|
||||
without it, one and only one regular file there is selected automatically.
|
||||
`link` selects a `public/` file whose first line is the http(s) tap target.
|
||||
|
||||
@@ -67,6 +67,18 @@ files match, the most recently modified file wins. Without `open=`, exactly one
|
||||
regular file in `public/` is attached automatically. Zero or multiple files
|
||||
produce no attached artifact. This is separate from ntfy's `artifacts=` keys.
|
||||
|
||||
`link=<pattern>` makes a tap on the phone notification (ntfy and app) open a
|
||||
URL the stage produced, such as a published doc. The pattern follows the `open=`
|
||||
rules; the matched file's first non-empty line must be an absolute http(s) URL
|
||||
without credentials or fragment. The run stays reachable from the notification's
|
||||
run action, and `open=` still attaches its artifact. A missing file or invalid
|
||||
URL keeps the usual tap target and is noted on the notification receipt:
|
||||
|
||||
```notify
|
||||
on=success
|
||||
link=standup-link.txt
|
||||
```
|
||||
|
||||
## Optional explicit delivery stage
|
||||
|
||||
Use native delivery only when the user needs delivery as an explicit routed stage
|
||||
|
||||
Reference in New Issue
Block a user