GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to fork a project by its ID or URL-encoded path. It is useful for automating project management tasks in GitLab, such as creating a fork of an existing repository programmatically. For example, a user can trigger this node to fork a project as part of a CI/CD pipeline or a project setup workflow.

Use Case Examples

  1. Fork a GitLab project by specifying its project ID to create a personal copy for development.
  2. Automate the creation of forks for multiple projects in a batch process.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for forking.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path to identify the project to fork.

Output

JSON

  • id - The ID of the forked project.
  • name - The name of the forked project.
  • path - The path of the forked project.
  • namespace - Namespace details of the forked project.
  • web_url - Web URL of the forked project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible with the provided credentials.
  • Check that the GitLab API key has sufficient permissions to fork projects.
  • Verify the base URL is correct if using a self-hosted GitLab instance.
  • Common error: 404 Not Found - The project ID does not exist or is not accessible.
  • Common error: 401 Unauthorized - Authentication failed, check API key or skipAuthentication setting.

Links

Discussion