GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the projects to which a specified user has contributed on GitLab. It is useful for scenarios where you want to list or analyze the projects associated with a particular user, such as for user activity tracking, project management, or reporting purposes. For example, you can fetch all projects contributed by a user to display on a dashboard or to audit user contributions.

Use Case Examples

  1. Fetch all projects contributed by user with ID '12345' to analyze their activity.
  2. Retrieve projects contributed by a username to display on a user profile page.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the 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 customize the request such as ordering, sorting, pagination, and simplified response.
Path Parameters Path parameters including the user ID or username to specify which user's contributed projects to retrieve.

Output

JSON

  • id - The unique identifier of the project.
  • name - The name of the project.
  • path - The path of the project.
  • created_at - The creation date of the project.
  • updated_at - The last update date of the project.
  • last_activity_at - The date of the last activity in the project.
  • star_count - The number of stars the project has received.
  • storage_size - The storage size of the project (admin only).
  • repository_size - The repository size of the project (admin only).
  • wiki_size - The wiki size of the project (admin only).
  • packages_size - The packages size of the project (admin only).

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user_id path parameter is correctly set and not empty, as it is required.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the user's contributed projects.
  • Check the baseUrl if connecting to a self-hosted GitLab instance to ensure it is correct.
  • If the response is empty, verify that the user has contributed projects and that query parameters like page and per_page are set appropriately.

Links

Discussion