GitLab API

GitlabTool

Actions905

Overview

This node operation allows importing a specific relation (such as issues, merge requests, CI pipelines, or milestones) into a GitLab project from a project export file. It is useful for automating the import of project data relations into GitLab, facilitating project migration or restoration workflows.

Use Case Examples

  1. Importing issues from a project export file into a GitLab project.
  2. Importing merge requests or CI pipelines from an export file to keep project data consistent.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request (GET, POST, PUT, DELETE, HEAD, PATCH).
Parameter Schema Defines the parameters required for the import relation operation, including project path, export file, and relation type.

Output

JSON

  • path - The project path and name where the relation is imported.
  • file - The project export file used to extract the relation.
  • relation - The type of relation to import (issues, merge_requests, ci_pipelines, or milestones).

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the project path is correct and accessible.
  • Verify the export file is valid and correctly formatted for import.
  • Check that the relation type is one of the supported values: issues, merge_requests, ci_pipelines, or milestones.
  • Authentication errors may occur if API credentials are missing or invalid.

Discussion