Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve information about a specific milestone associated with an issue in a repository. It is useful when you want to programmatically fetch details of a milestone by its ID or name within a given repository owned by a user or organization. Practical examples include automating project management workflows, synchronizing milestone data with other tools, or generating reports based on milestone progress.

Properties

Name Meaning
Owner The owner of the repository (user or organization) where the milestone exists.
Repo The name of the repository containing the milestone.
Id The identifier of the milestone to retrieve; can be either the milestone's ID or name.

Output

The node outputs JSON data representing the milestone details fetched from the Gitea API. This typically includes fields such as milestone ID, title, description, state, due date, and any other metadata provided by the API for that milestone. There is no binary output.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • No additional external dependencies beyond the Gitea API and n8n's HTTP request capabilities.

Troubleshooting

  • Common issues:
    • Incorrect or missing repository owner or repo name will result in not finding the milestone.
    • Providing an invalid milestone ID or name will cause the API to return an error or empty response.
    • Authentication failures if the API key or URL is misconfigured.
  • Error messages:
    • "Not Found" errors indicate the milestone or repository does not exist or is inaccessible.
    • "Unauthorized" or "Forbidden" errors suggest issues with API credentials or permissions.
  • Resolutions:
    • Verify the owner and repo names are correct and accessible.
    • Confirm the milestone ID or name is valid.
    • Check that the API key credential is properly set up and has sufficient permissions.

Links and References

Discussion