GitLab API icon

GitLab API

Gitlab

Actions880

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 activity on GitLab, such as tracking project updates, issue changes, or other user-related events. For example, it can be used to fetch recent events performed by a user to generate activity reports or trigger workflows based on user actions.

Use Case Examples

  1. Fetch the latest 20 events for a user with ID '123' to monitor their recent activity.
  2. Retrieve events filtered by a specific action or target type to analyze user interactions with issues or merge requests.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance to send the API request to.
Method HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to filter and paginate the events.
Path Parameters Path parameters for the API request, specifically the user ID or username.

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 affected by 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 key credential

Troubleshooting

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

Links

Discussion