Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to retrieve comments on a specific issue within a repository. It is useful for workflows that need to analyze, display, or process issue discussions programmatically. For example, you might use it to gather all comments on a bug report to summarize user feedback or trigger notifications based on new comments.

Properties

Name Meaning
Owner The owner of the repository where the issue exists.
Repo The name of the repository containing the issue.
Index The index (number) of the issue for which to get comments.
Since Optional. If provided, only comments updated since this timestamp are returned.
Before Optional. If provided, only comments updated before this timestamp are returned.

Output

The node outputs JSON data representing the list of comments retrieved from the specified issue. Each comment typically includes details such as the comment content, author information, timestamps, and possibly metadata related to the comment's state in Gitea.

If binary data were involved (e.g., attachments), it would be summarized here, but this operation deals solely with JSON comment data.

Dependencies

  • Requires an active connection to a Gitea instance via its API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL of the Gitea server must be set in the credentials.

Troubleshooting

  • Common issues:

    • Incorrect repository owner or name will result in errors or empty results.
    • Providing an invalid issue index may cause the API to return a "not found" error.
    • Improperly formatted Since or Before timestamps can lead to request failures.
    • Missing or invalid API credentials will prevent successful API calls.
  • Error messages:

    • 404 Not Found: Check if the owner, repo, and issue index are correct.
    • 401 Unauthorized: Verify that the API key credential is correctly configured and has sufficient permissions.
    • 400 Bad Request: Ensure date/time filters (Since, Before) are in the correct ISO 8601 format.

Links and References

Discussion