GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve the programming languages used in a specific project identified by its ID or URL-encoded path. It is useful for developers or DevOps teams who want to analyze or report on the language composition of their GitLab projects. For example, it can be used to automate the collection of language statistics for multiple projects in a CI/CD pipeline or project management dashboard.

Use Case Examples

  1. Retrieve the languages used in a project with ID '12345' to generate a report on codebase composition.
  2. Automate the monitoring of language usage across projects to enforce coding standards or technology stack policies.

Properties

Name Meaning
Skip Authentication Option to bypass authentication when making the API request.
Authentication The authentication method used to connect to the GitLab API, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path under the 'id' parameter.

Output

JSON

  • languages - An object or array representing the programming languages used in the specified GitLab project, as returned by the API.

Dependencies

  • GitLab API credentials for authentication unless Skip Authentication is enabled.

Troubleshooting

  • Ensure the project ID or URL-encoded path provided in the 'id' path parameter is correct and accessible.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to access project details.
  • If Skip Authentication is enabled, confirm that the GitLab instance allows unauthenticated access to the endpoint.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion