Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve information about a specific branch in a repository. It is useful when you need to programmatically access details of a particular branch, such as its commit SHA, protection status, or other metadata. Typical use cases include automation workflows that require validation of branch existence, fetching branch details before deployment, or integrating branch data into reporting tools.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository.
Branch The name of the branch to retrieve information for.

Output

The node outputs JSON data representing the branch details fetched from the Gitea API. This typically includes information such as the branch name, commit details (SHA, message, author), and possibly branch protection settings if available. The output does not include binary data.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Depends on the Gitea REST API being accessible and the user having permission to read repository branches.

Troubleshooting

  • Common issues:
    • Incorrect owner, repo, or branch names will result in errors or empty responses.
    • Authentication failures due to invalid or missing API keys.
    • Network connectivity problems to the Gitea server.
  • Error messages:
    • "Not Found" or 404 errors indicate the specified branch or repository does not exist or is inaccessible.
    • "Unauthorized" or 401 errors suggest invalid credentials.
  • Resolutions:
    • Verify the spelling and case sensitivity of owner, repo, and branch inputs.
    • Ensure the API key credential is valid and has sufficient permissions.
    • Confirm network access to the Gitea server URL.

Links and References

Discussion