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.

Commit707db3e

Browse files
committed
Merge pull request#72 from github/commit-list-limits
Document limit in the number of commits returned by Pull Request API and Commit Compare API
2 parentsc023505 +834a56d commit707db3e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎content/v3/pulls.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ Name | Type | Description
150150
<%= headers 200 %>
151151
<%= json(:commit) { |h|[h] } %>
152152

153+
Note: The response includes a maximum of 250 commits. If you are working with a pull request larger than that, you can use the[Commit List API](/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the pull request.
154+
153155
##List pull requests files
154156

155157
GET /repos/:owner/:repo/pulls/:number/files

‎content/v3/repos/commits.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ patch formats.
6060
<%= json:commit_comparison %>
6161

6262
Pass the appropriate[media type](/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.
63+
64+
###Working with large comparisons
65+
66+
The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the[Commit List API](/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.
67+
68+
For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp