Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance to compare two branches or commits within a repository. It is useful for developers and DevOps engineers who want to programmatically retrieve the differences between two points in a repository's history, such as comparing feature branches against the main branch or reviewing changes before merging.

Practical examples include:

  • Automating code review workflows by fetching diffs between branches.
  • Generating reports on changes between releases.
  • Integrating with CI/CD pipelines to trigger actions based on code differences.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository to compare.
Basehead The two branches or commits to compare, specified in a single string.

Output

The node outputs JSON data representing the diff between the specified branches or commits. This typically includes details such as changed files, additions, deletions, and patch information. The output allows downstream nodes to process or display these differences.

No binary data output is indicated.

Dependencies

  • Requires access to a Gitea instance via its API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the Gitea API must be set in the credentials configuration.

Troubleshooting

  • Common issues:

    • Incorrect owner or repository names will result in errors or empty responses.
    • Invalid or malformed basehead strings may cause the API to reject the request.
    • Network connectivity problems or incorrect API URLs can prevent successful communication.
  • Error messages:

    • Authentication failures indicate missing or invalid API tokens; verify credential setup.
    • "Not Found" errors suggest the specified repo or branches/commits do not exist; double-check inputs.
    • Rate limiting or permission errors require adjusting API usage or permissions.

Links and References

Discussion