GitLab API

GitlabTool

Actions1095

Commits → getApiV4ProjectsIdRepositoryCommitsShaMergeRequests

AI-generated

Summary

Retrieves merge requests associated with a commit, branch, or tag in a GitLab project using the configured HTTP method and API base URL. The endpoint defaults to GET; the base URL is supplied through the GitLab API credential.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips GitLab API credential authentication.
  • Method — HTTP method for the request; defaults to GET.
  • Project ID or path (id) (required) — Project ID or URL-encoded project path.
  • Commit SHA, branch, or tag (sha) (required) — Identifies the commit, branch, or tag whose associated merge requests to find.
  • Page — Optional pagination page number; the API schema default is 1.
  • Per_page — Optional number of items per page; the API schema default is 20.

Output shape

A list of merge request records returned by the GitLab API.

The node issues a request to /api/v4/projects/{id}/repository/commits/{sha}/merge_requests. The source delegates request execution and output handling to OpenApiToolNode, so the exact output envelope is not shown.

Examples

Example 1: Find merge requests for a commit in a project

Set the project ID or URL-encoded path and the commit SHA, then optionally set page and per_page to paginate results.

Links

Discussion