Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to delete an attachment from a comment on an issue within a specified repository. It is useful in scenarios where you need to programmatically manage issue comments by removing unwanted or outdated attachments, helping maintain clarity and relevance in issue discussions.

Practical examples include:

  • Automatically cleaning up attachments from issue comments after certain workflows complete.
  • Removing sensitive or incorrect files attached to issue comments without manual intervention.

Properties

Name Meaning
Owner The owner of the repository where the issue comment exists.
Repo The name of the repository containing the issue comment.
Id The ID of the comment from which the attachment will be deleted.
Attachment Id The ID of the specific attachment to delete from the comment.

Output

The node outputs JSON data representing the result of the deletion operation. Typically, this would confirm whether the attachment was successfully deleted or provide error details if the operation failed.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • Relies on the Gitea REST API endpoint for deleting issue comment attachments.

Troubleshooting

  • Common issues:
    • Invalid or missing repository owner or repo name can cause "Not Found" errors.
    • Incorrect comment ID or attachment ID will result in failure to locate the resource.
    • Insufficient permissions or invalid API credentials may lead to authorization errors.
  • Error messages:
    • 404 Not Found: Verify that the owner, repo, comment ID, and attachment ID are correct.
    • 401 Unauthorized: Check that the API authentication token is valid and has necessary permissions.
    • 400 Bad Request: Ensure all required parameters are provided and correctly formatted.

Links and References

Discussion