GitLab API

GitlabTool

Actions905

Overview

This node operation allows users to post a time estimate for a specific merge request in a GitLab project. It is useful for project management and tracking the estimated time required to complete a merge request. For example, a developer or project manager can set or update the time estimate for a merge request to better plan and allocate resources.

Use Case Examples

  1. Setting a time estimate for a merge request to communicate expected work duration.
  2. Updating the time estimate as the scope of the merge request changes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters for the API path including project ID and merge request internal ID.

Output

JSON

  • time_estimate - The time estimate set for the merge request, typically in seconds.
  • merge_request_iid - The internal ID of the merge request for which the time estimate was set.
  • project_id - The ID of the project containing the merge request.

Dependencies

  • Requires GitLab API key credential for authentication unless skipping authentication.

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to update merge request time estimates.
  • Check the base URL is correct for the GitLab instance being accessed.
  • Common errors include authentication failures, invalid project or merge request IDs, and insufficient permissions.

Links

Discussion