GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to perform an import operation from Bitbucket into a GitLab project. It is useful for automating the migration of repositories from Bitbucket to GitLab, streamlining project setup and integration workflows. For example, a user can trigger this node to import a Bitbucket repository into GitLab as part of a CI/CD pipeline or project initialization process.

Use Case Examples

  1. Import a Bitbucket repository into GitLab automatically when setting up a new project.
  2. Migrate multiple Bitbucket repositories to GitLab using an automated workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET but supporting POST, PUT, DELETE, HEAD, and PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body for the postApiV4ImportBitbucket operation.
Request Body Schema Defines the schema for the request body for the postApiV4ImportBitbucket operation.
Request Path The API endpoint path for the Bitbucket import operation, fixed to /api/v4/import/bitbucket.

Output

JSON

  • response - The JSON response from the GitLab API after attempting to import a Bitbucket repository.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have sufficient permissions to perform import operations.
  • Verify the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • Check that the request body matches the expected schema for the Bitbucket import operation to avoid validation errors.
  • Common error messages may include authentication failures, permission denied, or invalid request body format. Resolving these typically involves correcting credentials, permissions, or request data.

Links

Discussion