GitLab API

GitlabTool

Actions1000

Overview

This node operation updates the Packagist integration settings for a specific GitLab project. It is useful for managing and configuring the Packagist integration directly via the GitLab API, allowing automation of integration updates without manual intervention in the GitLab UI. For example, a user can automate enabling or modifying Packagist integration settings for multiple projects in a CI/CD pipeline.

Use Case Examples

  1. Automate updating Packagist integration settings for a project by specifying the project ID and desired configuration.
  2. Use in a workflow to ensure all projects have consistent Packagist integration settings.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID for this operation.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Packagist integration for the specified project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and the user has permission to update integrations for that project.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Verify the baseUrl is correct and accessible.
  • Check that the HTTP method is set to PUT for this update operation.

Links

Discussion