Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API, specifically to manage repository subscriptions for the current user. The "User Current Delete Subscription" operation allows the authenticated user to unsubscribe from notifications or updates of a specified repository. This is useful when a user no longer wants to receive alerts or track changes in a particular repository.

Practical examples include:

  • Automatically unsubscribing from repositories after certain workflows complete.
  • Managing user subscriptions programmatically based on project involvement.
  • Cleaning up notification settings in bulk for repositories no longer relevant.

Properties

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

Output

The output JSON will typically contain the response from the Gitea API confirming the deletion of the subscription. Since this is a delete operation, the output may be an empty object or a status confirmation indicating success.

No binary data output is expected from this operation.

Dependencies

  • Requires an active connection to a Gitea instance.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL for the Gitea API must be set in the credentials configuration.

Troubleshooting

  • Authentication errors: Ensure the API token is valid and has sufficient permissions to modify repository subscriptions.
  • Repository not found: Verify that the owner and repo names are correct and that the authenticated user has access to them.
  • Network issues: Confirm that the Gitea server URL is reachable from the n8n environment.
  • Permission denied: The user might not have rights to unsubscribe from the repository; check user roles and permissions.

Links and References

Discussion