GitLab API

GitlabTool

Actions1095

Merge_requests → deleteApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits

AI-generated

Summary

Delete specified context commits from a merge request within a GitLab project by providing the project ID, merge request IID, and the SHAs of the commits to remove.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request within the project.
  • commits (required) — An array of commit SHAs representing the context commits to delete from the merge request.
  • baseUrl — Optional base URL of the GitLab instance; defaults to 'https://gitlab.com' if not specified.
  • skipAuthentication — Boolean to skip authentication; defaults to false.

Output shape

no body success/failure only

The operation returns a standard HTTP response indicating success or failure of the delete operation but does not return a response body.

Links

Discussion