Push and pull request webhook from GitHub, GitLab, Gitea or Bitbucket
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/hooks/git/{id} may answer 202Push and pull request webhook from GitHub, GitLab, Gitea or Bitbucket (ADR 0027, 0160)
Signed as the connected provider signs: GitHub X-Hub-Signature-256, GitLab X-Gitlab-Token, Gitea X-Gitea-Signature (or X-Hub-Signature-256), Bitbucket X-Hub-Signature (sha256=). A delivery id seen before (X-GitHub-Delivery, X-Gitlab-Event-UUID, X-Gitea-Delivery, X-Request-UUID) answers duplicate and changes nothing.
No authentication.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required |
Request body
required
Content type: application/json
Example
{}Responses
202 What the delivery caused
Content type: application/json
actionstring requiredpong, ignored, ignored_fork, duplicate, already_deployed, deploying, preview_updating, preview_removing, or preview_refused:<code>
commitstring optionalpreviewstring optional
Example
{
"action": "string",
"commit": "string",
"preview": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required