Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit84b727e

Browse files
committed
document payload attributes and delivery headers
1 parentbfb50f2 commit84b727e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎content/webhooks/index.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,35 @@ types](/v3/activity/events/types/), with the exception of [the original `push`
8787
event](https://developer.github.com/v3/activity/events/types/#pushevent),
8888
which has a more detailed payload.
8989

90+
A full payload will also show the user that performed the event (`sender`),
91+
the repository (`repository`), and the organization (`organization`) if applicable.
92+
93+
HTTP requests made to your server's endpoint will contain several special
94+
headers:
95+
96+
Header | Description
97+
-------|-------------|
98+
`X-Github-Event`| Name of the[event](#events) that triggered this delivery.
99+
`X-Hub-Signature`| HMAC hex digest of the payload, using[the hook's`secret`](/v3/repos/hooks/#create-a-hook) as the key (if configured).
100+
`X-Github-Delivery`| Unique ID for this delivery.
101+
102+
Also, the`User-Agent` for the requests will have the prefix`GitHub Hookshot`.
103+
104+
**Example**:
105+
106+
<preclass="terminal">
107+
POST /payload HTTP/1.1
108+
109+
Host: localhost:4567
110+
X-Github-Delivery: 72d3162e-cc78-11e3-81ab-4c9367dc0958
111+
User-Agent: GitHub Hookshot 044aadd
112+
Content-Type: application/x-www-form-urlencoded
113+
Content-Length: 2491
114+
X-Github-Event: push
115+
116+
payload=%7B%22zen%22%3A%22Keep+it+logically+awesome.%22%2C%22hook_id%22%3A2151407%7D
117+
</pre>
118+
90119
##Wildcard Event
91120

92121
We also support a wildcard (`*`) that will match all supported events. When you

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp