GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the list of starred projects for a specified user from the GitLab API (v4). It is useful for scenarios where you want to fetch projects that a user has marked as favorites or starred, such as for displaying user-specific project lists or for analytics on user preferences.

Use Case Examples

  1. Fetch all starred projects of a user by their user ID.
  2. Filter starred projects by visibility or order them by creation date.
  3. Paginate through starred projects with custom page size and sorting options.

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 Collection of optional query parameters to filter and customize the list of starred projects returned, such as order_by, sort, archived, visibility, search, owned, membership, and pagination options.
Path Parameters Path parameter user_id specifies the ID or username of the user whose starred projects are being retrieved.

Output

JSON

  • id - Unique identifier of the project.
  • name - Name of the project.
  • path - Path of the project.
  • created_at - Timestamp when the project was created.
  • updated_at - Timestamp when the project was last updated.
  • last_activity_at - Timestamp of the last activity in the project.
  • visibility - Visibility level of the project (private, internal, public).
  • star_count - Number of stars the project has received.
  • archived - Boolean indicating if the project is archived.
  • statistics - Optional project statistics if requested.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user_id path parameter is correctly set and corresponds to a valid GitLab user.
  • Verify that the 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.
  • If filtering by query parameters, ensure the values conform to the expected types and allowed enums to avoid API errors.
  • Pagination parameters (page, per_page) should be used carefully to avoid missing data or excessive API calls.

Links

Discussion