Use this data source to retrieve webhooks for a given repository.
To retrieve webhooks of a repository:
data "github_repository_webhooks" "repo" {
repository = "foo"
}
webhooks
- An Array of GitHub Webhooks. Each webhook
block consists of the fields documented below.The webhook
block consists of:
id
- the ID of the webhook.type
- the type of the webhook.name
- the name of the webhook.url
- the url of the webhook.active
- true
if the webhook is active.