Attach run artifacts to app notifications
This commit is contained in:
@@ -185,3 +185,8 @@ once. A run started inside a linked worktree (an item's tree) and every retry
|
||||
use their directory as is. After a successful run whose tree is clean and
|
||||
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.
|
||||
|
||||
@@ -60,6 +60,13 @@ at most 1 MiB, with at most 10 listed. Absolute/traversal/hidden paths, `secrets
|
||||
database/key paths and `node_modules/` are rejected. This is not content scanning.
|
||||
Do not promise phone reception from structural validation.
|
||||
|
||||
`open=<pattern>` attaches one artifact from the run's shared `public/` directory
|
||||
to the app notification and makes its tap open that artifact. The pattern is a
|
||||
relative glob with no absolute path, `..`, or hidden path segment; if several
|
||||
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.
|
||||
|
||||
## 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