GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to perform batch application of suggestions via the endpoint `/api/v4/suggestions/batch_apply` using the HTTP PUT method. It is useful for automating the process of applying multiple suggestions in GitLab projects, which can streamline code review and collaboration workflows.

Use Case Examples

  1. Automatically apply a batch of code suggestions to a GitLab project after a merge request review.
  2. Integrate with CI/CD pipelines to programmatically apply suggestions based on automated code analysis.

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 request, fixed 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 Schema for the request body payload, defining the batch of suggestions to apply.
Request Path The API endpoint path for batch applying suggestions, fixed to `/api/v4/suggestions/batch_apply`.

Output

JSON

  • response - The JSON response from the GitLab API after applying the batch of suggestions, typically containing the result of the operation or status information.

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 if using a self-hosted GitLab.
  • Check that the request body conforms to the expected schema for batch applying suggestions to avoid validation errors.

Links

Discussion