GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the list of starred projects for a specified user from the GitLab API (version 4). It is useful for scenarios where you want to fetch projects that a user has marked as favorites or starred, enabling automation or integration workflows that involve user-specific project data from GitLab.

Use Case Examples

  1. Fetch all starred projects of a user to display in a dashboard.
  2. Automate notifications or reports based on user's starred projects.
  3. Integrate user's starred projects data into other project management tools.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Parameter Schema Defines the parameters accepted by the API endpoint, including path and query parameters such as user_id, order_by, sort, archived, visibility, search, and many others to filter and control the results.
Request Body Schema Schema for the request body, which is null for this GET operation.
Request Path The API endpoint path template to get starred projects for a user: /api/v4/users/{user_id}/starred_projects.
Query Parameters Collection of optional query parameters to filter and customize the list of starred projects, such as order_by, sort, archived, visibility, search, owned, membership, and pagination options.
Path Parameters Collection of path parameters, specifically the user_id to identify the user whose starred 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.
  • visibility - The visibility level of the project (private, internal, public).
  • archived - Indicates if the project is archived.
  • owner - Information about the owner of the project.
  • statistics - Optional project statistics if requested.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user_id path parameter is correctly set and valid; otherwise, the API will return an error.
  • Check that the authentication token has sufficient permissions to access the user's starred projects.
  • Verify that the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • If filtering parameters are used, ensure they are valid and supported by the GitLab API to avoid request errors.

Links

Discussion