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 list of topics associated with a repository. It is useful for managing repository metadata by adding or modifying the topics (tags) that describe the repository's content or purpose. For example, a user can update the topics of a project repository to improve discoverability or categorize it better within an organization.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository to update.
Topics A JSON array representing the list of topic names to set on the repository.

Output

The node outputs JSON data reflecting the updated repository information after the topics have been changed. This typically includes the repository details along with the new list of topics. There is no indication that binary data is output by this node.

Dependencies

  • Requires connection to a Gitea instance via its REST API.
  • Needs an API authentication token or key configured in the node credentials to authorize requests.
  • The base URL of the Gitea server must be provided in the credentials configuration.

Troubleshooting

  • Common issues:
    • Incorrect owner or repository name will cause the API call to fail with a "not found" error.
    • Invalid or missing API credentials will result in authentication errors.
    • Malformed JSON in the Topics property may cause request failures.
  • Error messages and resolutions:
    • 404 Not Found: Verify that the owner and repo names are correct and that the repository exists.
    • 401 Unauthorized: Check that the API key/token is valid and has sufficient permissions.
    • 400 Bad Request: Ensure the Topics JSON is properly formatted as an array of strings.

Links and References

Discussion