Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve information about repositories associated with the currently authenticated user. Specifically, the "User Current List Repos" operation fetches a paginated list of repositories owned or accessible by the user. This is useful for automating workflows that need to process or analyze a user's repositories, such as syncing repository data, generating reports, or triggering actions based on repository metadata.

Practical examples include:

  • Automatically listing all repositories of the authenticated user to display in a dashboard.
  • Fetching repositories to trigger CI/CD pipelines or notifications.
  • Integrating repository data into project management tools.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination to specify which subset of repositories to retrieve.
Limit The number of repository results to return per page. Controls the page size for pagination.

Output

The output JSON contains an array of repository objects representing the user's repositories for the requested page and limit. Each repository object typically includes details such as repository name, description, visibility, creation date, and other metadata as defined by the Gitea API.

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 standard HTTP headers to request and receive JSON data from the Gitea API.

Troubleshooting

  • Empty results: If no repositories are returned, verify that the authenticated user has repositories and that the page and limit parameters are set correctly.
  • Authentication errors: Ensure the API key or token provided in credentials is valid and has sufficient permissions to access user repositories.
  • API endpoint issues: Confirm the base URL is correct and the Gitea server is reachable.
  • Pagination mistakes: Remember that the page parameter is 1-based; setting it to 0 may result in unexpected behavior or empty responses.

Links and References

Discussion