GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves events for a specific user from the GitLab API (version 4). It is useful for scenarios where you want to monitor or analyze user activities such as issues, merge requests, notes, or other event types within GitLab. For example, it can be used to fetch recent user events for auditing or reporting purposes.

Use Case Examples

  1. Fetch the latest events for a user by their ID or username to track their activity on GitLab projects.
  2. Filter user events by action type or target type to analyze specific interactions like merge requests or issues.

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 request, default is GET.
Query Parameters Optional query parameters to filter and paginate the events, including page number, items per page, event action, target type, date filters (before and after), and sort order.
Path Parameters Path parameter specifying the user ID or username whose events are to be 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.
  • target_id - Identifier of the target object.
  • author_id - Identifier of the user who performed the event.
  • created_at - Timestamp when the event was created.
  • project_id - Identifier of the project related to the event.
  • push_data - Additional data related to push events, if applicable.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user ID or username provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API authentication credentials are correctly configured and have sufficient permissions to access user events.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If filtering by date or event type, confirm that the query parameters are correctly formatted and valid according to the GitLab API documentation.

Links

Discussion