GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the list of projects starred by a specific user on GitLab using the GitLab API v4. It is useful for scenarios where you want to fetch and analyze the starred projects of a user, such as for user activity monitoring, project popularity analysis, or integration with other tools that require project data from GitLab.

Use Case Examples

  1. Fetch all starred projects of a user by their user ID to display in a dashboard.
  2. Retrieve starred projects filtered by visibility or archived status for reporting purposes.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, default is GET.
Query Parameters Various optional query parameters to filter and sort the starred projects list, such as order_by, sort, archived, visibility, search, owned, starred, membership, and pagination options.
Path Parameters Path parameter user_id specifying the ID or username of the user whose starred projects are to be 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.
  • visibility - The visibility level of the project (private, internal, public).
  • star_count - The number of stars the project has received.
  • archived - Whether the project is archived.
  • statistics - Optional project statistics if requested.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user_id path parameter is correctly set and corresponds to a valid GitLab user ID or username.
  • Verify that the API authentication credentials are valid and have sufficient permissions to access the user's starred projects.
  • Check that the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • If filtering by query parameters, ensure the values conform to the expected types and allowed enums to avoid API errors.

Links

Discussion