Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit b727cd8

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent 6336353 commit b727cd8

File tree

24 files changed

+101
-116
lines changed

24 files changed

+101
-116
lines changed

content/v3/gists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The keys in the `files` object are the `string` filename, and the value is anoth
9090

9191
### Response
9292

93-
<%= headers 201, :Location => "https://api.github.com/gists/1" %>
93+
<%= headers 201, :Location => get_resource(:full_gist)['url'] %>
9494
<%= json :full_gist %>
9595

9696
## Edit a gist
@@ -181,7 +181,7 @@ The keys in the `files` object are the `string` filename. The value is another `
181181

182182
### Response
183183

184-
<%= headers 201, :Location => "https://api.github.com/gists/2" %>
184+
<%= headers 201, :Location => get_resource(:gist)['url'] %>
185185
<%= json(:gist) %>
186186

187187
## List gist forks

content/v3/gists/comments.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ Name | Type | Description
4444

4545
### Response
4646

47-
<%= headers 201,
48-
:Location => "https://api.github.com/gists/comments/1" %>
47+
<%= headers 201, :Location => get_resource(:gist_comment)['url'] %>
4948
<%= json :gist_comment %>
5049

5150
## Edit a comment

content/v3/git/blobs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ read more about the use of media types in the API [here](/v3/media/).
3636

3737
### Response
3838

39-
<%= headers 201,
40-
:Location => "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15" %>
39+
<%= headers 201, :Location => get_resource(:blob_after_create)['url'] %>
4140
<%= json :blob_after_create %>
4241

4342
## Custom media types

content/v3/git/commits.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ Name | Type | Description
5858

5959
### Response
6060

61-
<%= headers 201,
62-
:Location => "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd" %>
61+
<%= headers 201, :Location => get_resource(:new_commit)['url'] %>
6362
<%= json :new_commit %>

content/v3/git/refs.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ Name | Type | Description
5959

6060
### Response
6161

62-
<%= headers 201, \
63-
:Location => "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA" %>
62+
<%= headers 201, :Location => get_resource(:ref)['url'] %>
6463
<%= json :ref %>
6564

6665
## Update a Reference

content/v3/git/tags.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,5 @@ Name | Type | Description
6262

6363
### Response
6464

65-
<%= headers 201,
66-
:Location => "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac" %>
65+
<%= headers 201, :Location => get_resource(:gittag)['url'] %>
6766
<%= json :gittag %>

content/v3/git/trees.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,5 @@ Name | Type | Description
7777

7878
### Response
7979

80-
<%= headers 201,
81-
:Location => "https://api.github.com/repos/octocat/Hello-World/trees/cd8274d15fa3ae2ab983129fb037999f264ba9a7" %>
80+
<%= headers 201, :Location => get_resource(:tree_new)['url'] %>
8281
<%= json :tree_new %>

content/v3/issues.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ Name | Type | Description
108108

109109
### Response
110110

111-
<%= headers 201,
112-
:Location =>
113-
'https://api.github.com/repos/user/repo/issues/1' %>
111+
<%= headers 201, :Location => get_resource(:full_issue)['url'] %>
114112
<%= json :full_issue %>
115113

116114
## Edit an issue

content/v3/issues/comments.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@ Name | Type | Description
6363
`body`|`string` | **Required**. The contents of the comment.
6464

6565

66-
<%= json :body => "a new comment" %>
66+
<%= json :body => "Me too" %>
6767

6868
### Response
6969

70-
<%= headers 201,
71-
:Location =>
72-
"https://api.github.com/repos/user/repo/issues/comments/1" %>
70+
<%= headers 201, :Location => get_resource(:issue_comment)['url'] %>
7371
<%= json :issue_comment %>
7472

7573
## Edit a comment
@@ -83,7 +81,7 @@ Name | Type | Description
8381
`body`|`string` | **Required**. The contents of the comment.
8482

8583

86-
<%= json :body => "String" %>
84+
<%= json :body => "Me too" %>
8785

8886
### Response
8987

content/v3/issues/labels.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ Name | Type | Description
3737
`color`|`string` |**Required**. A 6 character hex code, without the leading `#`, identifying the color.
3838

3939

40-
<%= json :name => "API", :color => "FFFFFF" %>
40+
<%= json :name => "bug", :color => "f29513" %>
4141

4242
### Response
4343

44-
<%= headers 201,
45-
:Location =>
46-
"https://api.github.com/repos/user/repo/labels/foo" %>
44+
<%= headers 201, :Location => get_resource(:label)['url'] %>
4745
<%= json :label %>
4846

4947
## Update a label
@@ -58,7 +56,7 @@ Name | Type | Description
5856
`color`|`string` |**Required**. A 6 character hex code, without the leading `#`, identifying the color.
5957

6058

61-
<%= json :name => "API", :color => "FFFFFF" %>
59+
<%= json :name => "bug", :color => "f29513" %>
6260

6361
### Response
6462

0 commit comments

Comments
 (0)