Skip to content

Commit 267b7b4

Browse files
committed
restructure the locations for docs
1 parent 988cdfe commit 267b7b4

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

content/v3/repos/hooks.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ or the [PubSubHubbub API](#pubsubhubbub).
3333

3434
POST /repos/:owner/:repo/hooks
3535

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-
4636
### Parameter
4737

4838
Name | Type | Description
@@ -141,6 +131,18 @@ This will trigger a [ping event][ping-event-url] to be sent to the hook.
141131

142132
<%= headers 204 %>
143133

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+
144146
## PubSubHubbub
145147

146148
GitHub can also serve as a [PubSubHubbub][pubsub] hub for all repositories.

0 commit comments

Comments
 (0)