GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves detailed information about a specific project from the GitLab API (version 4). It is useful for scenarios where you need to fetch project metadata, including optional statistics, custom attributes, and license data, by specifying the project ID or URL-encoded path. For example, it can be used in automation workflows to monitor project details or integrate project data into other systems.

Use Case Examples

  1. Fetch project details by project ID to display in a dashboard.
  2. Retrieve project statistics and license information for reporting purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to include in the request, such as statistics, custom attributes, and license data.
Path Parameters Path parameters for the request, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The unique identifier of the project.
  • name - The name of the project.
  • description - The description of the project.
  • statistics - Project statistics if requested.
  • custom_attributes - Custom attributes of the project if requested.
  • license - License information of the project if requested.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • If authentication is required, verify that the GitLab API credentials are correctly configured and valid.
  • Check that the base URL is correct, especially if using a self-hosted GitLab instance.
  • If optional query parameters are used, ensure they are correctly formatted as boolean strings ('true' or 'false') to avoid request errors.

Links

Discussion