GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → getApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits

AI-generated

Summary

Retrieve the list of context commits for a specific merge request in a GitLab project by providing the project ID or URL-encoded path and the merge request IID.

Inputs

  • id (required) — The ID or URL-encoded path of the project.
  • merge_request_iid (required) — The internal ID (IID) of the merge request.
  • skipAuthentication — Option to skip authentication (default is false).
  • baseUrl — Base URL of the GitLab instance (default is https://gitlab.com).
  • method — HTTP method to use; defaults to GET.

Output shape

a list of commit objects representing the context commits of the given merge request

The output is a JSON array containing commit details related to the specified merge request. Authentication is required by default unless explicitly skipped. The base URL can be customized if connecting to a self-hosted GitLab instance.

Links

Discussion