GitLab API icon

GitLab API

Gitlab

Actions880

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 an automation workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
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 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 of the starred project.
  • starred - Boolean indicating if the project is starred.
  • message - Response message from the API after starring the project.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and URL-encoded if necessary.
  • If authentication is enabled, verify that the GitLab API token is valid and has sufficient permissions to star projects.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the project ID is invalid, and 401 Unauthorized if authentication fails.

Links

Discussion