GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation publishes a draft note on a specific merge request within a project in GitLab. It is useful for developers and project managers who want to finalize and make visible their draft comments on merge requests during code review processes. For example, after drafting comments on a merge request, this operation can be used to publish those comments so that they are visible to other collaborators.

Use Case Examples

  1. Publishing a draft note on a merge request to share feedback with the team.
  2. Finalizing comments on a merge request before merging code changes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the request path to identify the project, merge request, and draft note.

Output

JSON

  • response - The response from GitLab API after publishing the draft note, typically including the published note details.

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID, merge request IID, and draft note ID are correct and exist in GitLab.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials.
  • HTTP method must be PUT for this operation; using other methods may cause errors.

Links

Discussion