Skip to content

API Reference

TRIGRA exposes a simple HTTP API for webhook processing and health checks.

Receives GitHub webhook events.

StatusDescription
200 OKSuccess
401 UnauthorizedInvalid signature
400 Bad RequestInvalid payload

Health check endpoint.

Terminal window
curl http://trigra-service/health
{"status": "ok"}

Readiness check endpoint.

Service info.

{
"service": "trigra",
"version": "1.0.0",
"status": "running"
}

TRIGRA processes GitHub push events:

{
"ref": "refs/heads/main",
"repository": {
"full_name": "user/repo",
"clone_url": "https://github.com/user/repo.git"
},
"commits": [
{
"added": ["new-service.yaml"],
"modified": ["deployment.yaml"]
}
]
}

TRIGRA fetches and applies .yaml and .yml files from the commit.