GitLab API

GitlabTool

Actions1095

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits

AI-generated

Summary

Post a commit to the context commits of a specific merge request in a project on GitLab.

Inputs

  • id (required) — The ID or URL-encoded path of the project containing the merge request.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the project.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits (required) — The request body containing the commit details to post to the merge request's context commits.

Output shape

a JSON object representing the created context commit resource returned by the GitLab API

Returns the API response body for the newly posted context commit. Requires the specified project ID and merge request IID. Uses the GitLab API base URL from credentials or default 'https://gitlab.com'. Authentication is required unless 'Skip Authentication' is set.

Links

Discussion