GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to create a Composer package in a specific GitLab project by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/packages/composer`. It is useful for automating package management and deployment workflows within GitLab projects, especially for projects that use Composer for PHP dependency management.

Use Case Examples

  1. Automate uploading a new Composer package version to a GitLab project.
  2. Integrate GitLab Composer package creation into a CI/CD pipeline to streamline package publishing.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request. For this operation, it is typically POST.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the GitLab project where the Composer package is created.
  • packageDetails - Details of the Composer package created in the project, as returned by the GitLab API.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Verify that the base URL is correct and points to a valid GitLab instance.
  • Check that the request body conforms to the expected schema for creating a Composer package in GitLab.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation.

Links

Discussion