8000 Sync changes from upstream repository · liukailcl/developer.github.com@eda792e · GitHub
[go: up one dir, main page]

Skip to content

Commit eda792e

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent f2d4dd0 commit eda792e

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
kind: change
3+
title: New Releases API methods
4+
created_at: 2015-02-18
5+
author_name: pengwynn
6+
---
7+
8+
We've added two new methods to the [Releases API][]. You can now get the [latest published release][latest] for a repository.
9+
10+
GET /repos/:owner/:repo/releases/latest
11+
12+
You can also get a [release by tag name][by-tag].
13+
14+
GET /repos/:owner/:repo/releases/tags/:tag
15+
16+
If you have any questions or feedback, please [get in touch][contact].
17+
18+
[Releases API]: /v3/repos/releases/
19+
[latest]: /v3/repos/releases/#get-the-latest-release
20+
[by-tag]: /v3/repos/releases/#get-a-release-by-tag-name
21+
[contact]: https://github.com/contact?form[subject]=New+Releases+API+methods

content/v3/repos/releases.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@ Git tags that have not been associated with a release.
4040
<%= headers 200 %>
4141
<%= json :release %>
4242

43+
## Get the latest release
44+
45+
View the latest published release for the repository.
46+
47+
GET /repos/:owner/:repo/releases/latest
48+
49+
### Response
50+
51+
<%= headers 200 %>
52+
<%= json :release %>
53+
54+
## Get a release by tag name
55+
56+
Get a release with the specified tag. Users must have push access to the repository to view draft releases.
57+
58+
GET /repos/:owner/:repo/releases/tags/:tag
59+
60+
### Response
61+
62+
<%= headers 200 %>
63+
<%= json :release %>
64+
4365

4466
## Create a release
4567

0 commit comments

Comments
 (0)
0