GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to fork a project in GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/fork`. It is useful for scenarios where a user wants to create a copy of an existing project under their own namespace or group for independent development or experimentation. For example, a developer can fork a public repository to contribute changes without affecting the original project.

Use Case Examples

  1. Forking a public GitLab project to start independent development.
  2. Creating a personal copy of a project to experiment with new features.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public projects or testing.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST for this operation.
Path Parameters Parameters to specify the project to fork, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project to be forked, provided as a path parameter.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • The base URL must be correct for the GitLab instance being accessed, especially if using a self-hosted GitLab server.
  • HTTP method must be POST for this operation; using other methods may cause errors.

Links

Discussion