File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments