GitLab API

GitlabTool

Actions905

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 a merge request, which can streamline code review workflows and collaboration in software development projects.

Use Case Examples

  1. A developer wants to publish all draft comments on a merge request after completing a review.
  2. A CI/CD pipeline step that automatically publishes draft notes on a merge request after certain checks pass.

Properties

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

Output

JSON

  • response - The response from the GitLab API after bulk publishing draft notes.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified; incorrect values will cause the API call to fail.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials are correctly configured.
  • Network or base URL issues can cause connection failures; confirm the baseUrl is correct and accessible.

Links

Discussion