Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically allowing users to update the subscription status of the current user on a given repository. It is useful for scenarios where you want to programmatically manage notifications or watch settings on repositories you own or contribute to. For example, you can use this node to subscribe or unsubscribe yourself from repository updates without manually navigating the Gitea web interface.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository to update the subscription for.

Output

The node outputs JSON data representing the updated subscription information for the current user on the specified repository. This typically includes details such as whether the user is subscribed or not, and possibly other metadata related to the subscription status.

No binary data output is indicated.

Dependencies

  • Requires an API key credential to authenticate with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The node uses the Gitea REST API v1 endpoints.

Troubleshooting

  • Authentication errors: Ensure that the API key credential is valid and has sufficient permissions to modify repository subscriptions.
  • Repository not found: Verify that the "Owner" and "Repo" properties are correctly set and that the repository exists on the Gitea instance.
  • Permission denied: The authenticated user must have access rights to subscribe/unsubscribe to the repository.
  • API endpoint errors: Check that the Gitea server URL is correct and reachable.

Links and References

Discussion