GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves time statistics for a specific merge request in a GitLab project using the GitLab API. It is useful for tracking the time spent on a merge request, which can help in project management and monitoring development progress. For example, a user can get the total time spent on a merge request to analyze team productivity or estimate project timelines.

Use Case Examples

  1. Retrieve time stats for merge request IID 42 in project ID 'my-group/my-project' to monitor development time.
  2. Fetch time statistics for a merge request to report on time spent during a sprint.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Type of authentication used, default is GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters to specify the project ID or URL-encoded path and the internal ID of the merge request to fetch time stats for.

Output

JSON

  • time_stats - Time statistics of the specified merge request, including time spent and estimated time.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and exist in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to access the project's merge request data.
  • If skipping authentication, confirm the GitLab instance allows unauthenticated access to this endpoint.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.

Links

Discussion