Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list organizations that the current authenticated user belongs to. It is useful when you want to retrieve and manage information about your organizations in Gitea, such as displaying them in a dashboard or automating workflows based on organization membership.

A practical example would be an automation that fetches all organizations for the logged-in user and then triggers further actions like syncing repositories or managing permissions within those organizations.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for paginating through large sets of organizations. Default is 0.
Limit The number of results per page (page size). Controls how many organizations are returned in one request. Default is 0.

Output

The node outputs JSON data representing a list of organizations associated with the current user. Each item in the output array corresponds to an organization object as returned by the Gitea API. This typically includes details such as organization ID, name, description, URL, and other metadata.

No binary data output is produced by this operation.

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 node uses the Gitea REST API v1 endpoint /api/v1 to fetch organization data.

Troubleshooting

  • Empty results: If no organizations are returned, verify that the authenticated user actually belongs to any organizations and that the API key has sufficient permissions.
  • Authentication errors: Ensure the API key credential is valid and has access rights to read organization data.
  • Pagination issues: If you receive incomplete data, try adjusting the Page and Limit properties to correctly paginate through results.
  • API connectivity: Confirm the base URL is correct and the Gitea server is reachable from n8n.

Links and References

Discussion