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.

Commit48ec6da

Browse files
committed
Merge pull request#79 from github/releases-not-tags
Add a note to explain that tag archives are not included when listing releases via the API
2 parentsb3912cc +955f511 commit48ec6da

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

‎content/v3/repos/releases.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ will receive published releases only.
1515

1616
GET /repos/:owner/:repo/releases
1717

18+
Note: This returns a list of releases, which does not include regular
19+
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].
21+
1822
###Response
1923

2024
<%= headers 200 %>
@@ -40,7 +44,7 @@ Users with push access to the repository can create a release.
4044

4145
###Input
4246

43-
Name | Type | Description
47+
Name | Type | Description
4448
-----|------|--------------
4549
`tag_name`|`string` |**Required**. The name of the tag.
4650
`target_commitish`|`string` | Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually`master`).
@@ -74,7 +78,7 @@ Users with push access to the repository can edit a release.
7478

7579
###Input
7680

77-
Name | Type | Description
81+
Name | Type | Description
7882
-----|------|--------------
7983
`tag_name`|`string` | The name of the tag.
8084
`target_commitish`|`string` | Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually`master`).
@@ -138,7 +142,7 @@ This endpoint is provided by a URI template in [the release's API response](#get
138142
The raw file is uploaded to GitHub. Set the content type appropriately, and the
139143
asset's name in a URI query parameter.
140144

141-
Name | Type | Description
145+
Name | Type | Description
142146
-----|------|--------------
143147
`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).
144148
`name`|`string` |**Required**. The file name of the asset. This should be set in the URI query parameter.
@@ -181,7 +185,7 @@ Users with push access to the repository can edit a release asset.
181185

182186
###Input
183187

184-
Name | Type | Description
188+
Name | Type | Description
185189
-----|------|--------------
186190
`name`|`string` |**Required**. The file name of the asset.
187191
`label`|`string` | An alternate short description of the asset. Used in place of the filename.
@@ -205,3 +209,5 @@ Name | Type | Description
205209
###Response
206210

207211
<%= headers 204 %>
212+
213+
[repo tags api]:/v3/repos/#list-tags

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp