GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to reset the spent time on a specific merge request within a GitLab project. It is useful in scenarios where time tracking on merge requests needs to be cleared or reset, such as correcting time logs or starting fresh time tracking for a merge request. For example, a project manager might use this to reset the spent time after a merge request has been reviewed and reworked.

Use Case Examples

  1. Resetting spent time on a merge request to correct time tracking errors.
  2. Clearing time logs on a merge request before starting a new review cycle.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, hidden unless Skip Authentication is false.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the request path to identify the project and merge request.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • merge_request_iid - The internal ID of the merge request.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided and valid to avoid 404 errors.
  • Verify that the authentication credentials are correctly set up to prevent authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.

Links

Discussion