GitLab API

GitlabTool

Actions1000

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, especially when migrating or restoring project components.

Use Case Examples

  1. Importing issues from a project export file into a GitLab project.
  2. Restoring merge requests or CI pipelines from a backup file into a project.

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, default is GET but POST is used for this operation.
path The project path and name where the relation will be imported.
file The project export file from which to extract the relation to import.
relation The type of relation to import; must be one of issues, merge_requests, ci_pipelines, or milestones.

Output

JSON

  • status - The status of the import operation.
  • message - Message returned from the import operation, typically indicating success or error details.

Dependencies

  • GitLab API authentication

Troubleshooting

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

Links

Discussion