GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves resource milestone events associated with a specific merge request in a GitLab project. It is useful for tracking milestone changes or events related to merge requests within a project, such as when a milestone is added, changed, or removed. Practical examples include monitoring project progress or automating notifications based on milestone updates in merge requests.

Use Case Examples

  1. Fetch milestone events for a merge request to analyze project timeline changes.
  2. Automate alerts when a milestone is updated on a merge request to keep stakeholders informed.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines required and optional parameters for the API call, including project ID, eventable ID, pagination page, and items per page.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameters specifying the project ID and the eventable ID (merge request ID).

Output

JSON

  • ``
    • id - Unique identifier of the milestone event.
    • action - Action performed on the milestone (e.g., added, removed).
    • created_at - Timestamp when the milestone event was created.
    • milestone - Details of the milestone associated with the event.
    • user - User who triggered the milestone event.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and eventable ID are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project merge request data.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Pagination parameters (page and per_page) should be valid integers; otherwise, the API may return errors or unexpected results.

Links

Discussion