GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the list of projects to which a specified user has contributed on GitLab. It is useful for scenarios where you want to gather information about a user's contributions across projects, such as for reporting, analytics, or user activity tracking. For example, you can use it to fetch all projects a user has contributed to, ordered by creation date or last activity, and optionally get a simplified list containing only basic project details.

Use Case Examples

  1. Fetch all projects contributed to by user 'john_doe', ordered by creation date descending.
  2. Retrieve a simplified list of projects contributed to by user ID 123, showing only project ID, URL, name, and path.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to send the request to, defaulting to https://gitlab.com.
Method The HTTP method used for the request, default is GET.
Query Parameters Optional query parameters to customize the request, including order_by, sort, page, per_page, and simple (boolean to return simplified project info).
Path Parameters Path parameters for the request URL, specifically the user_id which is the ID or username of the user whose contributed projects are being fetched.

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).
  • similarity - Similarity score when searching projects (limited to accessible projects).

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user_id path parameter is correctly set to a valid user ID or username; otherwise, the request will fail.
  • If authentication is skipped, ensure the GitLab instance allows unauthenticated requests or the request will be denied.
  • Check that the baseUrl is correctly set to the GitLab instance URL you want to query.
  • If you receive permission errors, verify that the API key used has sufficient permissions to access user project data.
  • Pagination parameters (page, per_page) should be set correctly to avoid missing data or excessive data retrieval.

Links

Discussion