GitLab API

GitlabTool

Actions905

Overview

This node operation fetches user activity data from the GitLab API (v4) endpoint `/api/v4/user/activities`. It is useful for scenarios where you want to retrieve and analyze user activities such as events or actions performed by the authenticated user on GitLab. For example, it can be used to monitor user contributions, track project involvement, or generate activity reports.

Use Case Examples

  1. Retrieve user activities from a specific date to analyze recent contributions.
  2. Paginate through user activities to display them in a dashboard or report.

Properties

Name Meaning
Skip Authentication If set to true, the node skips using authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to send requests to, default is https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Query Parameters Optional query parameters to filter or paginate the user activities.

Output

JSON

  • response - The JSON response containing the user activities data from the GitLab API.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have the necessary permissions to access user activities.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check the date format for the 'From' query parameter to avoid request errors.
  • Pagination parameters 'Page' and 'Per_page' should be valid integers to avoid invalid request errors.

Links

Discussion