Skip to content

Commit 94106df

Browse files
Hubotgjtorikian
authored andcommitted
Sync changes from upstream repository
1 parent 65f887c commit 94106df

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

content/v3/git/trees.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ title: Git Trees | GitHub API
1616
<%= headers 200 %>
1717
<%= json :tree %>
1818

19-
<%= fetch_content(:fetch_more_trees) %>
19+
{{#tip}}
20+
21+
If `truncated` is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, you can clone the repository and iterate over the Git data locally.
22+
23+
{{/tip}}
2024

2125
## Get a Tree Recursively
2226

@@ -27,7 +31,12 @@ title: Git Trees | GitHub API
2731
<%= headers 200 %>
2832
<%= json :tree_extra %>
2933

30-
<%= fetch_content(:fetch_more_trees) %>
34+
35+
{{#tip}}
36+
37+
If `truncated` is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.
38+
39+
{{/tip}}
3140

3241
## Create a Tree
3342

content/v3/repos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Name | Type | Description
113113
`team_id`|`number` | The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
114114
`auto_init`|`boolean` | Pass `true` to create an initial commit with empty README. Default: `false`
115115
`gitignore_template`|`string` | Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell".
116-
`license_template`|`string` | Desired [LICENSE template](https://github.com/github/choosealicense.com) to apply. Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/licenses) without the extension. For example, "mit" or "mozilla".
116+
`license_template`|`string` | Desired [LICENSE template](https://github.com/github/choosealicense.com) to apply. Use the [name of the template](https://github.com/github/choosealicense.com/tree/gh-pages/_licenses) without the extension. For example, "mit" or "mozilla".
117117

118118
#### Example
119119

@@ -139,7 +139,7 @@ Name | Type | Description
139139
By owner and repository name:
140140

141141
GET /repos/:owner/:repo
142-
142+
143143
By repository id:
144144

145145
GET /repositories/:id

lib/resources.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ def webhook_payload(event_name)
118118
end
119119

120120
CONTENT ||= {
121-
"PUT_CONTENT_LENGTH" => "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](/v3/#http-verbs).\"",
122-
"FETCH_MORE_TREES" => "{{#tip}}\n\nIf `truncated` is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.\n\n{{/tip}}"
121+
"PUT_CONTENT_LENGTH" => "Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](/v3/#http-verbs).\""
123122
}
124123

125124
def fetch_content(key)

0 commit comments

Comments
 (0)