GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve projects contributed to by a specific user. It is useful for scenarios where you need to fetch and analyze projects a user has contributed to, such as in project management, user activity tracking, or reporting workflows. For example, you can use it to list all projects a user has contributed to, ordered by creation date or sorted by various criteria.

Use Case Examples

  1. Retrieve all projects contributed to by a user with user ID '12345', ordered by creation date descending.
  2. Fetch a simplified list of projects contributed to by a user, returning only the ID, URL, name, and path of each project.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the GitLab API.
baseUrl The base URL of the GitLab instance to connect to.
Method The HTTP method to use for the request.
Parameter Schema Defines the parameters for the API request, including user ID, ordering, sorting, pagination, and whether to return simplified project data.
Query Parameters Additional query parameters to customize the API request, such as order_by, sort, page, per_page, and simple.
Path Parameters Path parameters for the API request, specifically the user ID to identify the user whose contributed projects are being retrieved.

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 last activity date on 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 the user has access to.

Dependencies

  • Requires GitLab API authentication credentials (an API key or token).

Troubleshooting

  • Ensure the user_id path parameter is correctly set; missing or incorrect user_id will cause the API call to fail.
  • Verify that the authentication credentials are valid and have sufficient permissions to access user project data.
  • Check the baseUrl if connecting to a self-hosted GitLab instance; incorrect URL will cause connection errors.
  • Pagination parameters (page, per_page) should be within valid ranges to avoid empty or incomplete results.

Links

Discussion