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.

Commit7967d8a

Browse files
committed
Merge pull request#169 from github/update-1399661314
Sync changes from upstream repository
2 parents1dee3c6 +86819ae commit7967d8a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

‎content/changes/2014-05-09-improved-pagination-for-the-repository-commits-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ author_name: izuzak
77

88
The[Repository Commits API](/v3/repos/commits/) now supports an additional approach for paginating[commit lists](/v3/repos/commits/#list-commits-on-a-repository). As of today, this endpoint supports the "standard"[`page` and`per_page` parameters](/v3/#pagination) for controlling pagination. This API now uses these parameters by default when constructing[page links](/v3/#pagination).
99

10-
#Improved results and increased consistency
10+
##Improved results and increased consistency
1111

1212
This new approach improves the reliability of this endpoint, which on rare occasions skipped some commits during pagination. This enhancement also increases the overall consistency of the API, as all endpoints now paginate resource lists the same way.
1313

14-
#Old parameters still supported
14+
##Old parameters still supported
1515

1616
The old way of paginating, using`top`,`last_sha`, and`per_page` parameters, is still supported in API v3, but it will be removed in the[next major version of the API](https://developer.github.com/v3/versions/#v3-deprecations). API clients that are manually constructing URLs for pages should be modified to use the new parameters. Even better, API clients shouldn't construct URLs for pages manually, but should use[page links provided by the`Link` header](/guides/traversing-with-pagination/) in API responses.
1717

‎content/webhooks/creating/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ This is the server endpoint that will receive the webhook payload.
3737
Since we're developing locally for our tutorial, let's set it to`http://localhost:4567/payload`.
3838
We'll explain why in the[Configuring Your Server](/webhooks/configuring/) docs.
3939

40-
##Payload version
40+
##Content Type
4141

42-
Webhooks can deliver various[media types](/v3/media/) as defined by the GitHub API.
43-
Choose the one that best fits your needs. For this tutorial, the default format is fine.
42+
Webhooks can be delivered using different content types:
43+
44+
- The`application/json` content type will deliver the JSON payload directly as the body of the POST.
45+
- The`application/x-www-form-urlencoded` content type will send the JSON payload as a form parameter
46+
called "payload".
47+
48+
Choose the one that best fits your needs. For this tutorial, the default content type of
49+
`application/json` is fine.
4450

4551
##Events
4652

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp