GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → deleteApiV4ProjectsIdMergeRequestsMergeRequestIidContextCommits

AI-generated

Summary

Delete specific context commits from a merge request in a GitLab project by providing the project ID or path, merge request IID, and the commit SHAs to delete.

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 from which context commits will be deleted.
  • commits (required) — An array of commit SHAs identifying the context commits to delete from the merge request.
  • skipAuthentication — Whether to skip authentication for this request. Defaults to false.
  • baseUrl — The base URL of the GitLab instance, defaults to https://gitlab.com.

Output shape

The operation returns the response from the GitLab API delete call, typically confirming deletion or providing status information.

All required parameters must be set. The commits parameter must be provided as one or more commit SHAs in the query. Authentication is used by default unless skipped. The output will reflect the success or failure of the deletion request from the GitLab API.

Links

Discussion