GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to perform batch application of suggestions via a PUT request to the /api/v4/suggestions/batch_apply endpoint. It is useful for automating the process of applying multiple code suggestions in GitLab projects, streamlining code review workflows and batch updating suggestions efficiently.

Use Case Examples

  1. Automatically apply multiple code suggestions in a GitLab merge request.
  2. Batch update suggestions in a GitLab project to speed up code review processes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to PUT for this operation.
Parameter Schema Defines the schema for the parameters sent in the request body for the batch apply operation.
Request Body Schema Defines the schema for the request body content for the batch apply operation.
Request Path The API endpoint path for the batch apply suggestions operation, fixed to /api/v4/suggestions/batch_apply.

Output

JSON

  • response - The JSON response from the GitLab API after applying the batch suggestions.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has sufficient permissions to apply suggestions.
  • Verify the baseUrl is correctly set to the GitLab instance URL.
  • Check that the request body matches the expected schema for batch applying suggestions to avoid validation errors.

Links

Discussion