GitLab API

GitlabTool

Actions905

Overview

This node operation allows users to star a project on GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/star`. It is useful for automating the process of marking projects as favorites or starred within GitLab, which can help users quickly access important projects or track their preferred repositories.

Use Case Examples

  1. Automatically star a project when it is created or updated in a workflow.
  2. Batch star multiple projects based on certain criteria or triggers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the request, fixed to POST for this operation.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path to identify the project to star.

Output

JSON

  • id - The ID or URL-encoded path of the project that was starred.
  • starred - Boolean indicating whether the project was successfully starred.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential has sufficient permissions to star projects.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the project ID is invalid or inaccessible, and 401 Unauthorized if authentication fails.

Links

Discussion