Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows editing an existing comment on an issue within a repository hosted on a Gitea instance. It is useful when you need to update or correct the content of a previously posted comment on an issue, such as fixing typos, adding additional information, or clarifying points.

Practical examples include:

  • Updating a comment with new findings or status updates.
  • Correcting mistakes in a comment without deleting and reposting.
  • Adding further explanations or references to an existing discussion.

Properties

Name Meaning
Owner The owner (user or organization) of the repository containing the issue.
Repo The name of the repository where the issue exists.
Id The unique identifier of the comment to be edited.
Body The new text content that will replace the existing comment body.

Output

The node outputs JSON data representing the updated comment object returned by the Gitea API after successful editing. This typically includes fields such as the comment ID, updated body text, timestamps, and user information related to the comment.

No binary data output is involved in this operation.

Dependencies

  • Requires connection to a Gitea instance via its REST API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the Gitea API must be set correctly in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing repository owner or repo name can cause "Not Found" errors.
    • Providing an incorrect comment ID will result in failure to locate the comment.
    • Insufficient permissions or invalid API token may lead to authorization errors.
    • Empty or improperly formatted body content might cause validation errors.
  • Error messages and resolutions:

    • 404 Not Found: Verify the owner, repo, and comment ID are correct and exist.
    • 401 Unauthorized: Check that the API token is valid and has necessary scopes.
    • 400 Bad Request: Ensure the body content is not empty and meets API requirements.

Links and References

Discussion