GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the forks of a specific project from the GitLab API (version 4). It is useful for scenarios where you want to list or analyze all the forks of a given project, such as monitoring contributions, managing project forks, or integrating fork data into workflows.

Use Case Examples

  1. Get all forks of a project with a specific project ID to analyze fork activity.
  2. Retrieve forks filtered by visibility or sorted by creation date for project management.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to filter, sort, and paginate the list of forks.
Path Parameters Path parameters for the API request, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The unique identifier of the forked project.
  • name - The name of the forked project.
  • path - The path of the forked project.
  • created_at - The creation date of the forked project.
  • updated_at - The last update date of the forked project.
  • visibility - The visibility level of the forked project (private, internal, public).
  • archived - Whether the forked project is archived.
  • owner - Information about the owner of the forked project.
  • forked_from_project - Details about the original project from which this project was forked.

Dependencies

  • GitLab API authentication (an API key credential)

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly provided in the path parameters to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project forks.
  • Check the base URL if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • Be aware of API rate limits which might affect the response if making many requests in a short period.

Links

Discussion