Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server to list branches of a specified repository. It is useful for developers and DevOps engineers who want to programmatically retrieve branch information from their repositories hosted on a Gitea instance. Typical use cases include automation workflows that need to analyze or manipulate branches, such as CI/CD pipelines, reporting tools, or synchronization scripts.

For example, you might use this node to:

  • Fetch all branches of a repository before triggering builds.
  • List branches to display in a dashboard.
  • Automate branch cleanup by identifying stale branches.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository from which to list branches.
Page The page number of results to return (1-based). Useful for paginated responses.
Limit The maximum number of branch entries to return per page. Controls page size of results.

Output

The node outputs JSON data representing the list of branches retrieved from the specified repository. Each item in the output array corresponds to a branch object containing details such as branch name and commit information (typical fields returned by the Gitea API for branches).

No binary data output is produced by this operation.

Dependencies

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

Troubleshooting

  • Authentication errors: Ensure the API token is valid and has sufficient permissions to read repository data.
  • Repository not found: Verify that the owner and repo names are correct and that the authenticated user has access.
  • Pagination issues: If no results appear, check if the Page and Limit parameters are set correctly; page numbering starts at 1.
  • Network errors: Confirm the Gitea server URL is reachable and the network connection is stable.

Links and References

Discussion