Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea server via its API, specifically to list Git hooks for a given repository. It is useful in scenarios where you want to automate the retrieval of configured Git hooks on repositories hosted on a Gitea instance. For example, it can be used in DevOps workflows to audit or monitor repository hooks that trigger CI/CD pipelines or other automation tasks.

Properties

Name Meaning
Owner The owner (user or organization) of the repository.
Repo The name of the repository from which to list Git hooks.

Output

The node outputs JSON data representing the list of Git hooks configured on the specified repository. Each item in the output corresponds to a Git hook with details as provided by the Gitea API. The exact structure depends on the API response but typically includes information such as hook ID, type, configuration, and status.

No binary data output is indicated.

Dependencies

  • Requires access to a Gitea server with API enabled.
  • Needs an API authentication token credential configured in n8n to authenticate requests.
  • The base URL of the Gitea instance must be set in the credentials.
  • The node uses the Gitea REST API v1 endpoints.

Troubleshooting

  • Authentication errors: Ensure the API token credential is valid and has sufficient permissions to read repository hooks.
  • Repository not found: Verify that the "Owner" and "Repo" properties are correctly set and that the repository exists on the Gitea server.
  • Network issues: Confirm that the Gitea server URL is reachable from the n8n environment.
  • API rate limits: If many requests are made, the Gitea server might throttle API calls; consider adding delays or handling rate limit responses.

Links and References

Discussion