Webhooks

Webhooks can be posted at the end of each workflow. Webhook endpoints can be specified with the webhooks config key.

webhooks:
  - url: https://domain.com/webhook
  - url: https://other-domain.com/webhook

The body of the webhook is a JSON blob of the following structure:

{
	"id": Integer ,
	"installation_id": Integer ,
	"repository_id": Integer ,
	"repository": {
		"id": Integer ,
		"organization_id": Integer ,
		"service": String ,
		"project": String ,
		"name": String ,
		"full_name": String ,
		"git_url": String ,
		"private": String ,
		"enabled": String ,
		"created_at": Timestamp (ISO),
		"updated_at": Timestamp (ISO),
	},
	"branch": String ,
	"namespace": String ,
	"name": String ,
	"subdomain": String ,
	"full_environment_url": String ,
	"origin": String ,
	"pull_request_id": Integer ,
	"auto_update": Integer ,
	"state": String ,
	"created_at": Timestamp (ISO),
	"updated_at": Timestamp (ISO),
}

Last updated

Was this helpful?