Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically allowing users to delete the avatar image of a repository. It is useful in scenarios where repository maintainers want to remove a custom avatar or reset it to default without manually accessing the Gitea web interface.

Practical examples include:

  • Automating cleanup of repository metadata as part of a larger DevOps workflow.
  • Removing outdated or inappropriate avatars from repositories programmatically.
  • Integrating avatar management into CI/CD pipelines or administrative scripts.

Properties

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

Output

The node outputs JSON data representing the response from the Gitea API after attempting to delete the repository avatar. Typically, this will confirm success or provide error details if the operation failed.

No binary data output is involved.

Dependencies

  • Requires an active connection to a Gitea instance with API access.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the Gitea API must be provided in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials can cause authorization failures.
    • Incorrect owner or repository names will result in "not found" errors.
    • Insufficient permissions on the API token may prevent avatar deletion.
  • Error messages and resolutions:

    • 401 Unauthorized: Check that the API token is valid and has necessary scopes.
    • 404 Not Found: Verify the owner and repository names are correct and exist.
    • 403 Forbidden: Ensure the API token has permission to modify repository settings.

Links and References

Discussion