Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to star a repository on behalf of the current authenticated user. Specifically, the "User Current Put Star" operation allows the user to mark a repository as starred, which is a common way to bookmark or show appreciation for a project in Git hosting platforms.

Typical use cases include:

  • Automatically starring repositories that meet certain criteria (e.g., trending projects).
  • Integrating with workflows that manage repository metadata or user preferences.
  • Synchronizing starred repositories across different services.

For example, a developer might use this node to star a repository they just forked or cloned, helping them keep track of important projects.

Properties

Name Meaning
Owner The username or organization name that owns the repository to star.
Repo The name of the repository to star.

Both properties are required and must be provided as strings.

Output

The node outputs JSON data representing the response from the Gitea API after attempting to star the specified repository. This typically includes confirmation of the action or details about the repository's star status.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The node uses standard HTTP headers for JSON communication (Accept: application/json, Content-Type: application/json).

Troubleshooting

  • Authentication errors: If the API key or authentication token is invalid or missing, the node will fail to star the repository. Ensure valid credentials are configured.
  • Repository not found: If the owner or repo names are incorrect or the repository does not exist, the API will return an error. Double-check the spelling and case sensitivity.
  • Permission issues: The authenticated user must have permission to star the repository. Private repositories may require additional access rights.
  • Network issues: Connectivity problems with the Gitea server can cause timeouts or failures.

Links and References

Discussion