Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API to add a topic to a specific repository. It is useful for organizing repositories by tagging them with relevant topics, which can improve discoverability and categorization within the Gitea platform.

A practical example would be adding a "javascript" topic to a repository that contains JavaScript code, helping users find all repos related to JavaScript easily.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository to which the topic will be added.
Topic The name of the topic/tag to add to the repository.

Output

The node outputs JSON data representing the updated repository information after the topic has been added. This typically includes details about the repository and its associated topics.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API being accessible and properly configured to allow topic modifications.

Troubleshooting

  • Common issues:

    • Incorrect owner or repository name leading to "not found" errors.
    • Insufficient permissions or invalid API key causing authorization failures.
    • Network connectivity problems preventing access to the Gitea API.
  • Error messages and resolutions:

    • 404 Not Found: Verify that the owner and repo names are correct and that the repository exists.
    • 401 Unauthorized or 403 Forbidden: Check that the API key credential is valid and has sufficient permissions.
    • Network errors: Ensure the Gitea server URL is reachable from n8n and no firewall blocks the connection.

Links and References

Discussion