gitpod.v1.WebhookService
CreateWebhook
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.
name: "My Repo Webhook" type: WEBHOOK_TYPE_SCM_REPOSITORY scopes: - host: "github.com" owner: "gitpod-io" name: "gitpod" - host: "github.com" owner: "gitpod-io" name: "gitpod-next" provider: WEBHOOK_PROVIDER_GITHUB -
Create organization webhook:
Creates a webhook scoped to all repositories in an organization.
name: "Org Webhook" type: WEBHOOK_TYPE_SCM_ORGANIZATION organizationScope: host: "github.com" name: "gitpod-io" provider: WEBHOOK_PROVIDER_GITHUB
post/gitpod.v1.WebhookService/CreateWebhook
Request body
Response
Success