Unary · Webhooks
Creates a new webhook for receiving SCM events.
Use this method to:
- Set up webhooks for repository or organization events
- Configure webhook scopes and provider
Examples
-
Create repository webhook with multiple scopes:
Creates a webhook scoped to specific repositories.
-
Create organization webhook:
Creates a webhook scoped to all repositories in an organization.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.CreateWebhookRequest
CreateWebhookRequest creates a new webhook.
Response
gitpod.v1.CreateWebhookResponse
Related types
Webhook
Webhook
Webhook represents a webhook endpoint for receiving SCM events.
gitpod.v1.WebhookMetadata
Metadata
Metadata contains organizational and ownership information.
gitpod.v1.Webhook.MetadataSpec
Spec
Spec contains the webhook configuration.
gitpod.v1.Webhook.SpecWebhookOrganizationScope
WebhookOrganizationScope
WebhookOrganizationScope represents an SCM organization in the webhook’s scope.
gitpod.v1.WebhookOrganizationScopeWebhookRepositoryScope
WebhookRepositoryScope
WebhookRepositoryScope represents a repository in the webhook’s scope.
Contains SCM repository information needed to generate execution contexts.
The clone URL can be derived as https://{host}/{owner}/{name}.git
gitpod.v1.WebhookRepositoryScopeWebhookProvider
WebhookProvider
WebhookProvider identifies the Git provider.
WebhookType
WebhookType
WebhookType determines the scope level of the webhook.