Skip to content

Commit bde3cbe

Browse files
committed
Merge pull request github#286 from carlosdp/correct-fork-response
Set "fork": true for Fork responses
2 parents d481d77 + 164796d commit bde3cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/v3/repos/forks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sort
1919
### Response
2020

2121
<%= headers 200 %>
22-
<%= json(:repo) { |h| [h] } %>
22+
<%= json(:repo) { |h| h['fork'] = true; [h] } %>
2323

2424
## Create a fork
2525

@@ -43,4 +43,4 @@ a short period before accessing the git objects. If this takes longer than
4343
5 minutes, be sure to [contact Support](https://github.com/contact?form[subject]=APIv3).
4444

4545
<%= headers 202 %>
46-
<%= json :repo %>
46+
<%= json(:repo) { |h| h['fork'] = true; h } %>

0 commit comments

Comments
 (0)