GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to retrieve the programming languages used in a specific project. 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 fetch language statistics for a project identified by its ID or URL-encoded path.

Use Case Examples

  1. Fetch the languages used in a project with ID 12345 to generate a report on codebase composition.
  2. Automatically retrieve language data for projects to integrate with a dashboard showing technology stacks across multiple repositories.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • languages - An object or array representing the programming languages used in the specified GitLab project, typically including language names and their usage percentages or metrics.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly provided in the path parameters; otherwise, the API request will fail.
  • If authentication is skipped, the request might be unauthorized depending on the GitLab instance's access settings.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the correct API endpoint is targeted.

Links

Discussion