GitLab API icon

GitLab API

Gitlab

Actions1062

Branches → getApiV4ProjectsIdRepositoryBranchesBranch

AI-generated

Summary

Retrieve detailed information about a specific branch in a GitLab project by specifying the project ID or URL-encoded path and the branch name.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project containing the branch.
  • Branch (required) — The name of the branch to retrieve information for.
  • Skip Authentication — Optionally skip authentication when making the API call (default is false).
  • Method — The HTTP method to use for the request; defaults to GET and this operation uses GET.
  • baseUrl — The base URL for the GitLab server; defaults to https://gitlab.com.

Output shape

a single branch record

Returns the retrieved branch's detailed information as a single JSON object. Requires both 'id' and 'branch' path parameters to be set.

Links

Discussion