List releases
GET
/repos/{owner}/{repo}/releases
repos
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.github.com/repos///releases'
响应示例响应示例
200 - 示例 1
[
{
"assets": [
{
"browser_download_url": "http://example.com",
"content_type": "string",
"created_at": "2019-08-24T14:15:22Z",
"download_count": 0,
"id": 0,
"label": "string",
"name": "Team Environment",
"node_id": "string",
"size": 0,
"state": "uploaded",
"updated_at": "2019-08-24T14:15:22Z",
"uploader": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"url": "http://example.com"
}
],
"assets_url": "http://example.com",
"author": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"body": "string",
"body_html": "string",
"body_text": "string",
"created_at": "2019-08-24T14:15:22Z",
"draft": false,
"html_url": "http://example.com",
"id": 0,
"name": "string",
"node_id": "string",
"prerelease": false,
"published_at": "2019-08-24T14:15:22Z",
"reactions": {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "http://example.com"
},
"tag_name": "v1.0.0",
"tarball_url": "http://example.com",
"target_commitish": "master",
"upload_url": "string",
"url": "http://example.com",
"zipball_url": "http://example.com"
}
]
请求参数
Path 参数
owner
string
必需
repo
string
必需
Query 参数
per_page
integer
可选
page
integer
可选