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:
2026-12-02 12:20:22 +00:00
parent 26b1c00094
commit f5f31b7bcd
12 changed files with 355 additions and 55 deletions
+4 -3
View File
@@ -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.