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.

Commitd226998

Browse files
author
hubot
committed
Merge pull request#570 from github/update-1406919173
2 parentsf6b2bc8 +8544037 commitd226998

File tree

8 files changed

+25
-1
lines changed

8 files changed

+25
-1
lines changed

‎content/v3/activity/starring.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Requires for the user to be authenticated.
7373

7474
PUT /user/starred/:owner/:repo
7575

76+
<%= fetch_content(:put_content_length) %>
77+
7678
###Response
7779

7880
<%= headers 204 %>

‎content/v3/activity/watching.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ Requires for the user to be authenticated.
101101

102102
##Watch a repository (LEGACY)
103103

104-
Requiresforthe user to be authenticated.
104+
Requires the user to be authenticated.
105105

106106
PUT /user/subscriptions/:owner/:repo
107107

108+
<%= fetch_content(:put_content_length) %>
109+
108110
###Response
109111

110112
<%= headers 204 %>

‎content/v3/gists.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ The keys in the `files` hash are the `string` filename. The value is another `ha
137137

138138
PUT /gists/:id/star
139139

140+
<%= fetch_content(:put_content_length) %>
141+
140142
###Response
141143

142144
<%= headers 204 %>

‎content/v3/orgs/members.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ The user can publicize their own membership.
103103

104104
PUT /orgs/:org/public_members/:username
105105

106+
<%= fetch_content(:put_content_length) %>
107+
106108
###Response
107109

108110
<%= headers 204 %>

‎content/v3/orgs/teams.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ is associated with.
127127

128128
PUT /teams/:id/members/:username
129129

130+
<%= fetch_content(:put_content_length) %>
131+
130132
###Response
131133

132134
<%= headers 204 %>
@@ -186,6 +188,8 @@ organization.
186188

187189
PUT /teams/:id/repos/:org/:repo
188190

191+
<%= fetch_content(:put_content_length) %>
192+
189193
###Response
190194

191195
<%= headers 204 %>

‎content/v3/repos/collaborators.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ collaborators list.
3737

3838
PUT /repos/:owner/:repo/collaborators/:username
3939

40+
<%= fetch_content(:put_content_length) %>
41+
4042
###Response
4143

4244
<%= headers 204 %>

‎content/v3/users/followers.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ List who the authenticated user is following:
6565

6666
PUT /user/following/:username
6767

68+
<%= fetch_content(:put_content_length) %>
69+
6870
Following a user requires the user to be logged in and authenticated with basic
6971
auth or OAuth with the`user:follow` scope.
7072

‎lib/resources.rb‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ def webhook_payload(event_name)
117117
"<pre><code class='language-javascript'>" +File.read("lib/webhooks/#{event_name}.payload.json") +"</code></pre>"
118118
end
119119

120+
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+
}
123+
124+
deffetch_content(key)
125+
CONTENT[key.to_s.upcase]
126+
end
127+
120128
end
121129

122130
USER={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp