Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list users who have starred a specific repository. It is useful for scenarios where you want to analyze or display the community interest in a repository by retrieving its stargazers. For example, a project maintainer might use this node to gather data on who has starred their repo to engage with contributors or track popularity trends.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository for which to list stargazers.
Page The page number of results to return (1-based pagination).
Limit The number of stargazer records to return per page (page size).

Output

The node outputs JSON data representing the list of users who have starred the specified repository. Each item in the output array corresponds to a stargazer user object as returned by the Gitea API. This typically includes user details such as username, id, and other profile information. There is no binary data output.

Dependencies

  • Requires an API key credential for authenticating with a Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • No additional external dependencies beyond the Gitea API and n8n's HTTP request capabilities.

Troubleshooting

  • Common issues:

    • Incorrect owner or repo names will result in errors or empty results.
    • Pagination parameters (page and limit) must be positive integers; otherwise, the API may reject the request.
    • Network connectivity or authentication failures can cause errors when connecting to the Gitea API.
  • Error messages:

    • Unauthorized or authentication errors indicate missing or invalid API credentials.
    • Not found errors suggest the specified repository does not exist or is inaccessible.
    • Rate limiting errors may occur if too many requests are made in a short time; consider adding delays or reducing request frequency.

Links and References

Discussion