Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to delete a specific comment on an issue within a repository. It is useful in automation workflows where you need to programmatically manage issue comments, such as removing outdated or irrelevant comments from issues in a repository.

A practical example would be automatically cleaning up comments after an issue is resolved or when certain conditions are met, helping maintain a tidy issue tracker without manual intervention.

Properties

Name Meaning
Owner The owner of the repository (user or organization name)
Repo The name of the repository
Id The ID of the comment to delete

Output

The node outputs JSON data representing the response from the Gitea API after attempting to delete the comment. Typically, for a delete operation, this might be an empty object or a status confirmation indicating success. There is no binary data output.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • The node uses the Gitea REST API endpoint /api/v1 to perform operations.

Troubleshooting

  • Common Issues:

    • Invalid or missing repository owner or name can cause the API call to fail.
    • Providing an incorrect comment ID will result in an error indicating the comment was not found.
    • Authentication failures if the API key or URL is misconfigured.
  • Error Messages:

    • 404 Not Found: The specified comment ID does not exist in the given repository.
    • 401 Unauthorized: Authentication failed due to invalid or missing API credentials.
    • 400 Bad Request: Input parameters may be malformed or missing required fields.
  • Resolutions:

    • Verify that the owner and repo names are correct and exist.
    • Confirm the comment ID is valid and belongs to the specified issue.
    • Check that the API key credential is correctly set up and has sufficient permissions.

Links and References

Discussion