GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits

AI-generated

Summary

Post a new context commit comment to a specified merge request in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request to which the context commits comment will be posted.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits (required) — The request body containing the details of the context commit comment to post. This must follow the schema defined for context commits in GitLab API.
  • baseUrl — The base URL of the GitLab instance. Defaults to https://gitlab.com if not specified.
  • skipAuthentication — Option to skip authentication; defaults to false, requiring valid GitLab API credentials.

Output shape

a single JSON object representing the newly created context commit comment as returned by the GitLab API

The operation requires authentication unless 'Skip Authentication' is set to true. Input parameters 'id', 'merge_request_iid', and the request body are mandatory. The returned object matches GitLab's context commit comment structure.

Links

Discussion