Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Admin resource of a Gitea instance, specifically to list scheduled cron jobs configured in the system. It is useful for administrators who want to retrieve and monitor the current cron jobs running on their Gitea server. For example, an admin can use this node to fetch paginated lists of cron jobs to audit or display them in dashboards.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination.
Limit The number of results per page (page size). Controls how many cron jobs are returned per request.

Output

The node outputs JSON data representing the list of cron jobs retrieved from the Gitea API. Each item in the output corresponds to a cron job with its details as provided by the API. The structure typically includes fields such as job name, schedule, status, and other metadata related to each cron job.

No binary data output is produced by this node.

Dependencies

  • Requires connection to a Gitea server with administrative API access.
  • Needs an API authentication token or key credential configured in n8n to authenticate requests.
  • The base URL of the Gitea instance must be set in the credentials.

Troubleshooting

  • Common issues:

    • Authentication failures due to invalid or missing API tokens.
    • Network connectivity problems reaching the Gitea server.
    • Pagination parameters out of range (e.g., requesting a page number beyond available pages).
  • Error messages:

    • Unauthorized or 401 errors indicate issues with API credentials; verify and update the API key.
    • 404 or endpoint not found errors may mean the Gitea URL or API path is incorrect.
    • 400 errors could result from invalid query parameters like negative page or limit values; ensure these are positive integers.

Links and References

Discussion