GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to update or retrieve the repository size information for a specific project identified by its ID or URL-encoded path. It is useful in scenarios where you need to manage or monitor the storage usage of a project's repository within GitLab, such as automating repository size updates or integrating repository size data into other workflows.

Use Case Examples

  1. Automatically update the repository size of a project after a commit.
  2. Fetch and log the repository size for monitoring storage usage across multiple projects.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Select the authentication method, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters to be included in the 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.
  • project_id - The ID of the project for which the repository size is updated or retrieved.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly provided in the path parameters to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to access and modify project repository information.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion