webhook_config
Overview
Name | webhook_config |
Type | Resource |
Id | github.repos.webhook_config |
Fields
Name | Datatype | Description |
---|---|---|
content_type | string | The media type used to serialize the payloads. Supported values include json and form . The default is form . |
insecure_ssl | `` | |
secret | string | If provided, the secret will be used as the key to generate the HMAC hex digest value for delivery signature headers. |
url | string | The URL to which the payloads will be delivered. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_webhook_config_for_repo | SELECT | hook_id, owner, repo | Returns the webhook configuration for a repository. To get more information about the webhook, including the active state and events , use "Get a repository webhook."Access tokens must have the read:repo_hook or repo scope, and GitHub Apps must have the repository_hooks:read permission. |
update_webhook_config_for_repo | EXEC | hook_id, owner, repo | Updates the webhook configuration for a repository. To update more information about the webhook, including the active state and events , use "Update a repository webhook."Access tokens must have the write:repo_hook or repo scope, and GitHub Apps must have the repository_hooks:write permission. |