GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to update the repository size of a specific project. It is useful in scenarios where you need to programmatically adjust or trigger recalculation of the repository size for a project hosted on GitLab, such as in automated project maintenance or reporting workflows.

Use Case Examples

  1. Automatically update repository size after pushing large changes to a GitLab project.
  2. Trigger repository size recalculation as part of a CI/CD pipeline to ensure accurate project metrics.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used for the request, 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 to update repository size.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path to identify the project whose repository size is being updated.

Output

JSON

  • response - The JSON response from the GitLab API after updating the repository size, typically including status or updated project details.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and URL-encoded if necessary.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to update project repository size.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include authentication failures, invalid project ID, or insufficient permissions. Resolving these involves verifying credentials, project existence, and user permissions.

Links

Discussion