You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/v3/repos/hooks.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,14 +120,14 @@ Name | Type | Description
120
120
#####Example
121
121
122
122
The["web" service hook](https://github.com/github/github-services/blob/master/lib/services/web.rb#L4-11)
123
-
takes these fields:
123
+
takes these fields in the`config`:
124
124
125
125
Name | Type | Description
126
126
-----|------|--------------
127
127
`url`|`string` |**Required**. The URL to which the payloads will be delivered.
128
128
`content_type`|`string` | The media type used to serialize the payloads. Currently, only`json` is supported. Default:`json`
129
129
`secret`|`string` | If defined, then HTTP requests that deliver the payloads will include an`X-Hub-Signature` header. The value of this header is computed as the[HMAC hex digest of the body, using the`secret` as the key][hub-signature].
130
-
`insecure_ssl`|`boolean` | Determines whether the SSL certificate of the host for`url` will be verified when delivering payloads.Default:`0` (verification is performed)
130
+
`insecure_ssl`|`string` | Determines whether the SSL certificate of the host for`url` will be verified when delivering payloads.Supported values:`"0"` (verification is performed) and`"1"` (verification is not performed). Default:`"0"`.
131
131
132
132
Here's how you can setup a hook that posts payloads in JSON format:
133
133
@@ -152,7 +152,7 @@ Here's how you can setup a hook that posts payloads in JSON format:
152
152
153
153
####Parameter
154
154
155
-
Name | Type | Description
155
+
Name | Type | Description
156
156
-----|------|--------------
157
157
`config`|`hash` | Key/value pairs to provide settings for this hook. Modifying this will replace the entire config object. These settings vary between the services and are defined in the[github-services](https://github.com/github/github-services) repository. Booleans are stored internally as "1" for true, and "0" for false. Any JSON`true`/`false` values will be converted automatically.
158
158
`events`|`array` | Determines what events the hook is triggered for. This replaces the entire array of events. Default:`["push"]`