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.

Commit234200b

Browse files
committed
Merge pull request#156 from github/update-1398708236
Sync changes from upstream repository
2 parents717bf3e +8116715 commit234200b

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

‎content/v3/repos/releases.md‎

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ title: Releases | GitHub API
99

1010
##List releases for a repository
1111

12-
Users with push access to the repository will receive all releases
13-
(i.e., published releases and draft releases). Users with pull access
14-
will receive published releases only.
12+
Information about published releases are available to everyone.
13+
Only users with push access will receive listings for draft releases.
1514

1615
GET /repos/:owner/:repo/releases
1716

18-
Note: This returns a list of releases, which does not include regular
17+
**Note:** This returns a list of releases, which does not include regular
1918
Git tags that have not been associated with a release.
20-
To get a list of Git tags, use the[Repository Tags API][repo tags api].
19+
(To get a list of Git tags, use the[Repository Tags API][repo tags api].)
2120

2221
###Response
2322

@@ -33,8 +32,8 @@ To get a list of Git tags, use the [Repository Tags API][repo tags api].
3332
<%= headers 200 %>
3433
<%= json:release %>
3534

36-
Note: This returns an "upload_url" hypermedia relation that provides the[endpoint
37-
that creates release assets](#upload-a-release-asset).
35+
**Note:** This returns an`"upload_url"` hypermedia relation that provides the
36+
[endpointthat creates release assets](#upload-a-release-asset).
3837

3938
##Create a release
4039

@@ -124,14 +123,14 @@ Users with push access to the repository can delete a release.
124123

125124
##Upload a release asset
126125

127-
This is a unique endpoint. Thedomain of therequestchanges from "api.github.com"
128-
to**"uploads.github.com"**. You need to use an HTTP client which supports
126+
This is a unique endpoint. The request's domainchanges from`"api.github.com"`
127+
to**`"uploads.github.com"`**. You need to use an HTTP client which supports
129128
[SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this
130129
endpoint.
131130

132-
The asset data is expected in its raw binary form,
133-
instead of JSON.Everything else about the endpoint is the same. Pass your
134-
authentication exactly the same as the rest of the API.
131+
The asset data is expected in its raw binary form, rather than JSON.
132+
Everything else about the endpoint is the same.
133+
Pass yourauthentication exactly the same as the rest of the API.
135134

136135
POST https://uploads.github.com/repos/:owner/:repo/releases/:id/assets?name=foo.zip
137136

@@ -144,7 +143,7 @@ asset's name in a URI query parameter.
144143

145144
Name | Type | Description
146145
-----|------|--------------
147-
`Content-Type`|`string` |**Required**. The content type of the asset. This should be set in the Header. Example: "application/zip". For a list of acceptable types, refer this list of[common media types](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types).
146+
`Content-Type`|`string` |**Required**. The content type of the asset. This should be set in the Header. Example:`"application/zip"`. For a list of acceptable types, refer this list of[common media types](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types).
148147
`name`|`string` |**Required**. The file name of the asset. This should be set in the URI query parameter.
149148

150149

@@ -157,7 +156,7 @@ Send the raw binary content of the asset as the request body.
157156

158157
###Response for upstream failure
159158

160-
This may leave an empty asset with a state of "new". It can be safely deleted.
159+
This may leave an empty asset with a state of`"new"`. It can be safely deleted.
161160

162161
<%= headers 502 %>
163162

@@ -171,9 +170,9 @@ This may leave an empty asset with a state of "new". It can be safely deleted.
171170
<%= json:release_asset %>
172171

173172
If you want to download the asset's binary content, pass a media type of
174-
"application/octet-stream". The API will either redirect the client to the
173+
`"application/octet-stream"`. The API will either redirect the client to the
175174
location, or stream it directly if possible. API clients should handle both a
176-
200 or 302 response.
175+
`200` or`302` response.
177176

178177
<%= headers 302 %>
179178

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp