GitLab API icon

GitLab API

Gitlab

Actions1062

Commits → getApiV4ProjectsIdRepositoryCommitsShaRefs

AI-generated

Summary

Retrieve references (branches and tags) containing a specific commit in a GitLab project repository using the GitLab API v4 endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to query.
  • sha (required) — The commit SHA to find references for.
  • type — The scope of refs to return: 'branch', 'tag', or 'all' (default).
  • page — Page number for paginated results, default is 1.
  • per_page — Number of items per page for pagination, default is 20.
  • method — HTTP method to use for the request; defaults to GET.
  • baseUrl — Optional base URL for the GitLab instance, defaults to https://gitlab.com.
  • skipAuthentication — If set to true, skips the use of GitLab API authentication; default is false.

Output shape

a list of references (branches and/or tags) containing the specified commit

The response is paginated according to the provided 'page' and 'per_page' parameters. Authentication is required unless explicitly skipped, in which case behavior depends on GitLab API accessibility.

Links

Discussion