create_webhook
Set up automated notifications for repository events like pushes, pull requests, and comments by creating a webhook that triggers HTTP calls to a specified URL.
Instructions
Create a webhook for a repository.
Args:
repo_slug: Repository slug
url: URL to call when events occur
events: List of events to trigger on. Common events:
- repo:push (code pushed)
- pullrequest:created, pullrequest:updated, pullrequest:merged
- pullrequest:approved, pullrequest:unapproved
- pullrequest:comment_created
description: Webhook description (optional)
active: Whether webhook is active (default: True)
Returns:
Created webhook info with UUIDInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| url | Yes | ||
| events | Yes | ||
| description | No | ||
| active | No |