Get a branch
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/branches/{branch} \
--header 'Authorization: <api-key>'{
"name": "<string>",
"commit": {
"id": "<string>",
"message": "<string>",
"url": "<string>",
"author": {
"name": "<string>",
"email": "<string>",
"username": "<string>"
},
"committer": {
"name": "<string>",
"email": "<string>",
"username": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}
}Repositories
Get a branch
GET
/
repos
/
{owner}
/
{repo}
/
branches
/
{branch}
Get a branch
curl --request GET \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/branches/{branch} \
--header 'Authorization: <api-key>'{
"name": "<string>",
"commit": {
"id": "<string>",
"message": "<string>",
"url": "<string>",
"author": {
"name": "<string>",
"email": "<string>",
"username": "<string>"
},
"committer": {
"name": "<string>",
"email": "<string>",
"username": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}
}