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
service can only listen for `push`, `issues`, and `pull_request` events.
54
-
55
-
The available events are:
56
-
57
-
Name | Description
58
-
-----|-----------|
59
-
`push` | Any git push to a Repository. **This is the default event.**
60
-
`issues` | Any time an Issue is opened or closed.
61
-
`issue_comment` | Any time an Issue is commented on.
62
-
`commit_comment` | Any time a Commit is commented on.
63
-
`create` | Any time a Repository, Branch, or Tag is created.
64
-
`delete` | Any time a Branch or Tag is deleted.
65
-
`pull_request` | Any time a Pull Request is opened, closed, or synchronized (updated due to a new push in the branch that the pull request is tracking).
66
-
`pull_request_review_comment` | Any time a Commit is commented on while inside a Pull Request review (the Files Changed tab).
67
-
`gollum` | Any time a Wiki page is updated.
68
-
`watch` | Any time a User watches the Repository.
69
-
`release` | Any time a Release is published in the Repository.
70
-
`fork` | Any time a Repository is forked.
71
-
`member` | Any time a User is added as a collaborator to a non-Organization Repository.
72
-
`public` | Any time a Repository changes from private to public.
73
-
`team_add` | Any time a team is added or modified on a Repository.
74
-
`status` | Any time a Repository has a status update from the API
75
-
`deployment` | Any time a Repository has a new deployment created from the API.
76
-
`deployment_status` | Any time a deployment for the Repository has a status update from the API.
77
-
78
-
79
-
### Payloads
80
-
81
-
The payloads for all hooks mirror [the payloads for the Event
82
-
types](/v3/activity/events/types/), with the exception of [the original `push`
`name`|`string` | **Required**. The name of the service that is being called. (See [/hooks](https://api.github.com/hooks) for the list of valid hook names.)
119
41
`config`|`hash` | **Required**. Key/value pairs to provide settings for this hook. 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.
120
42
`events`|`array` | Determines what events the hook is triggered for. Default: `["push"]`
121
43
`active`|`boolean` | Determines whether the hook is actually triggered on pushes.
122
44
123
-
#####Example
45
+
#### Example
124
46
125
47
The ["web" service hook](https://github.com/github/github-services/blob/master/lib/services/web.rb#L4-11)
126
48
takes these fields in the `config`:
127
49
128
-
Name | Type | Description
50
+
Name | Type | Description
129
51
-----|------|--------------
130
52
`url`|`string` | **Required**. The URL to which the payloads will be delivered.
131
53
`content_type`|`string` | The media type used to serialize the payloads. Supported values: `json` and `form`. Default: `form`.
@@ -143,17 +65,17 @@ Here's how you can setup a hook that posts payloads in JSON format:
This will trigger a [ping event][ping-event-url] to be sent to the hook.
119
+
120
+
POST /repos/:owner/:repo/hooks/:id/pings
121
+
122
+
### Response
191
123
192
124
<%= headers 204 %>
193
125
194
126
## Delete a hook
195
127
196
128
DELETE /repos/:owner/:repo/hooks/:id
197
129
198
-
####Response
130
+
### Response
199
131
200
132
<%= headers 204 %>
201
133
@@ -209,7 +141,7 @@ Topic URLs for a GitHub repository's pushes are in this format:
209
141
210
142
https://github.com/:owner/:repo/events/:event
211
143
212
-
The event can be any [event](#events) string that is listed at the top of this
144
+
The event can be any [event][events-url] string that is listed at the top of this
213
145
document.
214
146
215
147
### Response format
@@ -251,7 +183,7 @@ exists, it will be modified according to the request.
251
183
252
184
#### Parameters
253
185
254
-
Name | Type | Description
186
+
Name | Type | Description
255
187
-----|------|--------------
256
188
``hub.mode``|`string` | **Required**. Either `subscribe` or `unsubscribe`.
257
189
``hub.topic``|`string` |**Required**. The URI of the GitHub repository to subscribe to. The path must be in the format of `/:owner/:repo/events/:event`.
Copy file name to clipboardExpand all lines: content/v3/troubleshooting.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
@@ -30,7 +30,7 @@ in order to get more results.
30
30
It's important to *not* try and guess the format of the pagination URL. Not every
31
31
API call uses the same structure. Instead, extract the pagination information from
32
32
[the Link Header](/v3/#pagination), which is sent with every request.
33
-
33
+
34
34
## Can I get my rate limits bumped?
35
35
36
36
The GitHub API has a pretty lenient quota for rate limits, for your enjoyment and
@@ -43,8 +43,8 @@ In certain exceptional cases, we may temporarily bump your rate limit higher. Yo
43
43
should be prepared to answer technical questions about your goal and your planned usage of the API. We may still choose not to bump your limit if we feel that you can achieve your wildest
44
44
dreams with the current rate limit (but don't worry, we'll help you out).
45
45
46
-
## Why can't my server with SSL receive WebHooks?
46
+
## Why can't my server with SSL receive Webhooks?
47
47
48
48
When we send events to your server, we attempt to negotiate either SSL version 2 or 3.
49
49
If your server requires a specific SSL version and does not support SSL negotiation,
50
-
you can specify a specific version within the [WebHook's config block](http://developer.github.com/v3/repos/hooks/#edit-a-hook). Include a parameter called `ssl_version`, with a value of either `2` or `3`.
50
+
you can specify a specific version within the [webhook's config block](http://developer.github.com/v3/repos/hooks/#edit-a-hook). Include a parameter called `ssl_version`, with a value of either `2` or `3`.
0 commit comments