GitLab API

GitlabTool

Actions1095

Commits → getApiV4ProjectsIdRepositoryCommitsShaRefs

AI-generated

Summary

Lists the branches and tags that contain a specified GitLab commit by calling GET /api/v4/projects/{id}/repository/commits/{sha}/refs.

Inputs

  • Skip Authentication — When enabled, skips authentication; otherwise the node uses the GitLab API credential.
  • baseUrl — Base URL defaults to https://gitlab.com; the source indicates the actual base URL is defined in the GitLab API credential.
  • Path Parameters (required) — id: project ID or URL-encoded project path. sha: commit SHA.
  • Query Parameters — type scopes results to branch, tag, or all (API schema default all). page selects a page (schema default 1), and per_page sets the page size (schema default 20).

Output shape

A list of repository references for the commit.

The operation uses GET and supports pagination through page and per_page. The UI query fields default to empty strings, while the parameter schema declares API defaults.

Links

Discussion