GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation updates a draft note on a merge request within a specific project in GitLab. It is useful for developers or teams managing code reviews and merge requests, allowing them to modify draft comments before finalizing them. For example, a user can update the content of a draft note to clarify feedback or correct mistakes before submitting the merge request for review.

Use Case Examples

  1. Updating a draft note on a merge request to add more detailed feedback.
  2. Correcting a typo in a draft comment on a merge request before it is published.

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 to update.

Output

JSON

  • response - The JSON response from GitLab API containing the updated draft note details.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, merge request IID, and draft note ID are correct and exist in GitLab to avoid 404 errors.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials.
  • Check that the HTTP method is set to PUT for updating the draft note, as other methods may not work for this operation.

Links

Discussion