GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to bulk publish draft notes on a specific merge request within a GitLab project. It is useful for automating the process of finalizing and publishing multiple draft comments on merge requests, which can streamline code review workflows in GitLab projects.

Use Case Examples

  1. Automatically publish all draft notes on a merge request after a successful CI pipeline run.
  2. Bulk publish draft comments on a merge request as part of a code review automation process.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to 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 to specify the project ID and merge request IID for the API call.

Output

JSON

  • response - The API response after bulk publishing draft notes on the merge request.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified; incorrect values will cause API errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • HTTP method should be POST for this operation; using other methods may result in failure.

Links

Discussion