Zebflow Docs
trigger.repo
Zebflow Docs

trigger.repo

Runs when files under --path of the project's repository change (created, edited, moved or deleted, by a person in Zebflow Studio, an MCP agent, a git sync or an import), once the pipeline is active

trigger.repo --path TEXT → repo

Runs when files under --path of the project's repository change (created, edited, moved or deleted, by a person in Zebflow Studio, an MCP agent, a git sync or an import), once the pipeline is active. It waits until the repository has been quiet for 2 seconds, so a burst of saves is one run (at most 30 seconds of waiting). --path is a folder or a file, repository-relative (docs, content/blog, data/catalog.csv); / is the whole repository; docs does not match docs-old. Answers one key, repo: { path, changes: [{ action, path, to_path?, person, via }], dropped, node_id } (input.repo.changes). A change the pipeline itself made never starts it again. Typical use: | trigger.repo --path docs | web.site.generate --from docs … rebuilds a docs site on every edit. Runs show under pipeline_get_invocations with trigger trigger.repo.

Flags

  • --path (required): The repository folder or file to watch (docs, data/catalog.csv); / is the whole repository.

Examples

Rebuild a docs site on every edit

| trigger.repo --path docs

Then | web.site.generate --from docs --folder sites/docs.

It answers:

json
{  "repo": {    "path": "docs",    "changes": [      {        "action": "edit",        "path": "docs/start.md",        "person": "superadmin",        "via": "studio"      }    ],    "dropped": 0,    "node_id": "n0"  }}