GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API, specifically supporting the operation to import GitHub Gists into GitLab via the endpoint `/api/v4/import/github/gists`. It is useful for automating the migration of code snippets or gists from GitHub to GitLab repositories or projects. For example, a user can automate the import of multiple GitHub Gists into GitLab as part of a CI/CD pipeline or project setup process.

Use Case Examples

  1. Automate importing GitHub Gists into GitLab for backup or migration.
  2. Integrate GitHub Gist imports into a project initialization workflow in GitLab.

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 key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
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 import operation.
Request Body Schema Defines the schema for the request body content for the import operation.
Request Path The API endpoint path for importing GitHub Gists into GitLab, fixed as /api/v4/import/github/gists.

Output

JSON

  • response - The JSON response from the GitLab API after attempting to import GitHub Gists.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has sufficient permissions to perform imports.
  • Verify the baseUrl is correct and accessible from the network where the node runs.
  • Check that the request body matches the expected schema for importing GitHub Gists to avoid validation errors.

Links

Discussion