GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation cancels a GitHub import process in a GitLab project by sending a POST request to the GitLab API endpoint `/api/v4/import/github/cancel`. It is useful for users who want to programmatically stop an ongoing GitHub import into GitLab, for example, if the import was started by mistake or needs to be aborted for any reason.

Use Case Examples

  1. Cancel a GitHub import in a GitLab project using the GitLab API within an automated workflow.
  2. Integrate this node to manage project imports dynamically based on user input or other workflow conditions.

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 request is sent.
Method The HTTP method used for the API request, defaulting to POST for this operation.
Parameter Schema Defines the schema for the request body parameters required by the cancel import operation.
Request Body Schema Schema for the request body, if applicable, for the cancel import operation.
Request Path The API endpoint path for cancelling the GitHub import.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API authentication credential is correctly configured and has sufficient permissions to cancel imports.
  • Verify the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Check that the import process is currently running; cancelling a non-existent or already completed import may result in errors.

Links

Discussion