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.

Sync changes from upstream repository#635

Merged
hubot merged 1 commit intomasterfromupdate-1415666052
Nov 11, 2014
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletionscontent/v3/repos/releases.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@ title: Releases | GitHub API

## List releases for a repository

Information about published releases are available to everyone.
Information about published releases are available to everyone.
Only users with push access will receive listings for draft releases.

GET /repos/:owner/:repo/releases
Expand All@@ -29,11 +29,17 @@ Git tags that have not been associated with a release.

### Response

{{#tip}}

<a id="releases-hypermedia-url"/>

**Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/v3/#hypermedia).

{{/tip}}

<%= headers 200 %>
<%= json :release %>

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

## Create a release

Expand DownExpand Up@@ -123,18 +129,16 @@ Users with push access to the repository can delete a release.

## Upload a release asset

Thisis a unique endpoint. The request's domain changes from `"api.github.com"`
to **`"uploads.github.com"`**. You need to use an HTTP client which supports
[SNI](http://en.wikipedia.org/wiki/Server_Name_Indication)tomake calls to this
endpoint.
Thisendpoint makes use of [a Hypermedia relation](/v3/#hypermedia) to determine which URL to access.
This endpoint is provided by a URI template in [the release's API response](#get-a-single-release).
<span class="not-enterprise">You needtouse an HTTP client which supports
<a href="http://en.wikipedia.org/wiki/Server_Name_Indication">SNI</a> to make calls to thisendpoint.</span>

The asset data is expected in its raw binary form, rather than JSON.
Everything else about the endpoint is the same.
Pass your authentication exactly the same as the rest of the API.
The asset data is expected in its raw binary form, rather than JSON.
Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset.

POST https://uploads.github.com/repos/:owner/:repo/releases/:id/assets?name=foo.zip
POST https://<upload_url>/repos/:owner/:repo/releases/:id/assets?name=foo.zip

This endpoint is provided by a URI template in [the release's API response](#get-a-single-release).

### Input

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp