Hanzo AI
OpenapiGit

List workflows

Reports the workflows a repository declares at a ref and which declared pool would execute each job — the answer to "would a push here run, and where".

GET /v1/git/workflows

Addresshttps://api.hanzo.ai/v1/git/workflows
MethodGET
Operationget_git_workflows
AuthAuthorization: Bearer $HANZO_API_KEY

Reports the workflows a repository declares at a ref and which declared pool would execute each job — the answer to "would a push here run, and where".

Request

2 fields.

FieldInTypeRequiredDescription
repoquerystringRepo is the repository whose workflows to read.
refquerystringRef is the branch to read them at; empty means the default.

Response

StatusBodyMeaning
200git.workflowListok
defaultproblem-detailsrefused

200 body — 7 fields.

FieldInTypeAlwaysDescription
databodygit.workflowView[]Data is the workflows the repository declares at the ref.
data[].faultbodystringFault is why this document cannot run at all, when it cannot be read.
data[].jobsbodygit.jobView[]Jobs is what it declares, and where each would run.
data[].jobs[].namebodystringName is the job's id in the workflow document.
data[].jobs[].poolbodystringPool is the declared pool carrying every one of those labels, or empty when no pool does — which is the answer to "why is nothing running".
data[].jobs[].runsOnbodystring[]RunsOn is the labels the job asked for.
data[].namebodystringName is the document's path in the repository.

Failure carries the platform error shape — see Errors.

Examples

hanzo git workflows

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page