Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to update the avatar image of a specific repository. It is useful when you want to programmatically change the repository's avatar without manually uploading it through the Gitea web interface. For example, you might automate branding updates across multiple repositories or synchronize avatars based on external events.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository whose avatar you want to update.
Image The new avatar image encoded as a base64 string. This image will replace the current one.

Output

The node outputs JSON data representing the response from the Gitea API after updating the repository avatar. This typically includes confirmation details about the updated repository or avatar status. There is no binary output.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The API endpoint used is /api/v1/repos/{owner}/{repo}/avatar (implied by the operation context).

Troubleshooting

  • Invalid or missing owner/repo: Ensure the "Owner" and "Repo" fields are correctly set; otherwise, the API will return errors indicating the repository was not found.
  • Invalid image format: The "Image" property must be a valid base64-encoded string representing an image. If the encoding is incorrect or the image is corrupted, the API may reject the request.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions to update repository settings.
  • API endpoint errors: If the Gitea server URL is incorrect or unreachable, the node will fail to connect.

Links and References

Discussion