GitLab API

GitlabTool

Actions1000

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.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
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 to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be 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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • If authentication is skipped, verify that the GitLab instance allows unauthenticated requests for starring projects.
  • Check that the base URL is correctly set to the GitLab instance you are targeting.
  • Common error messages include 404 Not Found if the project ID is invalid or inaccessible, and 401 Unauthorized if authentication fails. Verify credentials and permissions.

Links

Discussion