commits

List all references a commit is pushed to

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.

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

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

shastring required

A commit sha

Query parameters

type'branch' | 'tag' | 'all'

Scope

pageinteger

Current page number

per_pageinteger

Number of items per page

Response

List all references a commit is pushed to

typestring required
namestring required

Example response

[
  {
    "type": "tag",
    "name": "v1.1.0"
  }
]

Changes

No recorded changes to this operation across all 5 revisions of this API.