GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to update or calculate the repository size of a specific project identified by its ID or URL-encoded path. It is useful in scenarios where you need to programmatically manage or retrieve repository size information for projects hosted on GitLab, such as in automation workflows for project maintenance or reporting.

Use Case Examples

  1. Automatically update repository size information for a project after a significant code push.
  2. Retrieve and log repository size data for monitoring storage usage across multiple projects.

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 request is sent.
Method The HTTP method used for the API request, default is GET but can be POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters included in the API request path, specifically the project ID or URL-encoded path to identify the project.

Output

JSON

  • repository_size - The size of the repository for the specified project.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project repository size.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion