Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a Gitea instance via its API, specifically allowing users to delete a pull request review from a repository. It is useful in scenarios where a user needs to programmatically manage code reviews on pull requests, such as automating cleanup of outdated or incorrect reviews.

For example, if a team wants to remove a specific review from a pull request after it has been invalidated or superseded, this node can be used to delete that review by specifying the repository owner, repository name, pull request index, and the review ID.

Properties

Name Meaning
Owner The username or organization name that owns the repository.
Repo The name of the repository from which the pull request review will be deleted.
Index The index (number) of the pull request within the repository.
Id The unique identifier of the pull request review to delete.

Output

The node outputs JSON data representing the result of the delete operation. Typically, for a delete action, the output may be an empty object or confirmation of successful deletion. There is no indication that binary data is involved.

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 provided in the credentials configuration.

Troubleshooting

  • Common issues:
    • Invalid or missing API credentials will cause authentication failures.
    • Incorrect repository owner or repo name will result in "not found" errors.
    • Specifying a non-existent pull request index or review ID will cause the API to return errors indicating the resource does not exist.
  • Error messages:
    • Authentication errors: Check that the API key/token is valid and has sufficient permissions.
    • 404 Not Found: Verify that the owner, repo, pull request index, and review ID are correct.
    • Permission denied: Ensure the API token has rights to modify pull request reviews.

Links and References

  • Gitea API Documentation – Official API docs for reference on endpoints and parameters related to pull request reviews.

Discussion