Runs
Create Run
Creates a new workflow run in submitted status from a self-contained manifest.
post/api/v1/runs
Request body
Example request
{
"version": 1,
"run_id": "01HV6D7S5YF4Z4B2M7K4N0Q6T9",
"parent_id": "01HV6D7S5YF4Z4B2M7K4N0Q6T8",
"title": "Add rate limiting to auth endpoints",
"cwd": "/tmp/project",
"git": {
"origin_url": "https://github.com/acme/my-app.git",
"branch": "feature/foo",
"sha": "abc123def"
},
"target": {
"identifier": "smoke",
"path": ".fabro/workflows/smoke/workflow.fabro"
}
}Response
Run created
Example response
{
"repository": {
"name": "fabro-sh/fabro",
"origin_url": "https://github.com/fabro-sh/fabro.git"
},
"lifecycle": {
"error": {
"message": "Stage 'apply-changes' exceeded maximum retries."
}
},
"timing": {
"wall_time_ms": 420000,
"inference_time_ms": 120000,
"tool_time_ms": 60000,
"active_time_ms": 180000
},
"diff": {
"files_changed": 42,
"additions": 567,
"deletions": 234
},
"pull_request": {
"owner": "fabro-sh",
"repo": "fabro",
"number": 123,
"html_url": "https://github.com/fabro-sh/fabro/pull/123"
},
"current_question": {
"text": "Accept or push for another round?"
}
}