GitLab API

GitlabTool

Actions1000

Overview

This node operation allows uploading files to a specific project in GitLab via the GitLab API. It is useful for automating file uploads to projects, such as adding images, documents, or other assets directly to a project's repository or storage in GitLab. For example, it can be used in CI/CD pipelines or project management workflows to programmatically upload files to a project.

Use Case Examples

  1. Uploading a project logo or documentation file to a GitLab project automatically after a build process.
  2. Adding user-generated content or assets to a GitLab project repository through an automated workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters to be included in the request path, specifically the project ID for this operation.

Output

JSON

  • id - The ID of the uploaded file or resource.
  • url - The URL where the uploaded file can be accessed.
  • alt - Alternative text or description for the uploaded file.
  • markdown - Markdown formatted link or reference to the uploaded file.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID path parameter is correctly provided and valid, as missing or incorrect IDs will cause request failures.
  • Authentication errors may occur if the API key or token is invalid or missing; verify credentials are correctly configured.
  • File upload failures might happen if the file format or size is not supported by GitLab or if the request body is malformed.

Links

Discussion