Skip to main content
GET
/
repos
/
{owner}
/
{repo}
/
releases
List releases
curl --request GET \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/releases \
  --header 'Authorization: <api-key>'
[
  {
    "id": 123,
    "tag_name": "<string>",
    "target_commitish": "<string>",
    "name": "<string>",
    "body": "<string>",
    "draft": true,
    "prerelease": true,
    "author": {
      "id": 123,
      "username": "<string>",
      "login": "<string>",
      "full_name": "<string>",
      "email": "[email protected]",
      "avatar_url": "<string>"
    },
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

Response

Success

id
integer
tag_name
string
target_commitish
string
name
string
body
string
draft
boolean
prerelease
boolean
author
object
created_at
string<date-time>