GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidDraftNotesBulkPublish

AI-generated

Summary

Bulk publishes all draft notes on a specified merge request within a project in GitLab.

Inputs

  • Id (required) — The ID of the GitLab project containing the merge request.
  • Merge_request_iid (required) — The internal ID (IID) of the merge request containing the draft notes to publish.

Output shape

no body indicates success or failure only.

Performs a POST request to GitLab's API endpoint to bulk publish draft notes on the merge request; the response does not return data, only the HTTP status indicates operation outcome.

Examples

Example 1: Bulk publish all draft notes on a merge request

Provide the GitLab project ID and the merge request IID to target the correct resource; trigger this operation to convert all draft notes to regular comments on the merge request.

Links

Discussion