Skip to content

List all references a commit is pushed to

GET
/api/v4/projects/{id}/repository/commits/{sha}/refs

Lists all references (from branches or tags) a commit is pushed to. The pagination parameters page and per_page can be used to restrict the list of references.

id
required
One of:
string

The ID or URL-encoded path of the project

sha
required
string

A commit sha

type
string
default: all nullable
Allowed values: branch tag all

Scope

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
type
string
name
string
Example
{
"type": "tag",
"name": "v1.1.0"
}

Bad Request

Not found