GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation fetches events from the GitLab API v4. It allows users to retrieve various types of events related to a user's projects, such as issues, merge requests, notes, and more. This is useful for monitoring project activities, auditing changes, or integrating event data into workflows.

Use Case Examples

  1. A project manager wants to track all merge request events to monitor code review progress.
  2. A developer needs to fetch recent issue events to update a dashboard with the latest project activities.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Collection of optional query parameters to filter and paginate the events retrieved.

Output

JSON

  • id - Unique identifier of the event.
  • action_name - Name of the action performed in the event.
  • target_type - Type of the target object related to the event.
  • author
    • username - Username of the event author.
  • created_at - Timestamp when the event was created.
  • project_id - Identifier of the project related to the event.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have the necessary permissions to access events.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check query parameters for valid values and formats, particularly date fields and enumerations like target_type.
  • Common error messages include authentication failures (401 Unauthorized) and invalid parameter errors (400 Bad Request). Resolving these involves verifying credentials and parameter correctness.

Links

Discussion