File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,6 @@ or the [PubSubHubbub API](#pubsubhubbub).
33
33
34
34
POST /repos/:owner/:repo/hooks
35
35
36
- ### Webhook Headers
37
-
38
- GitHub will send along a few HTTP headers to differentiate between event types and payload identifiers.
39
-
40
- Name | Description
41
- -----|-----------|
42
- ` X-GitHub-Event ` | The [ event type] ( #events ) that was triggered.
43
- ` X-GitHub-Delivery ` | A [ guid] [ guid ] to identify the payload and event being sent.
44
- ` X-GitHub-Signature ` | The value of this header is computed as the HMAC hex digest of the body, using the ` secret ` config option as the key.
45
-
46
36
### Parameter
47
37
48
38
Name | Type | Description
@@ -141,6 +131,18 @@ This will trigger a [ping event][ping-event-url] to be sent to the hook.
141
131
142
132
<%= headers 204 %>
143
133
134
+ ## Receiving Webhooks
135
+
136
+ ### Webhook Headers
137
+
138
+ GitHub will send along a few HTTP headers to differentiate between event types and payload identifiers.
139
+
140
+ Name | Description
141
+ -----|-----------|
142
+ ` X-GitHub-Event ` | The [ event type] ( #events ) that was triggered.
143
+ ` X-GitHub-Delivery ` | A [ guid] [ guid ] to identify the payload and event being sent.
144
+ ` X-GitHub-Signature ` | The value of this header is computed as the HMAC hex digest of the body, using the ` secret ` config option as the key.
145
+
144
146
## PubSubHubbub
145
147
146
148
GitHub can also serve as a [ PubSubHubbub] [ pubsub ] hub for all repositories.
You can’t perform that action at this time.
0 commit comments