Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to dismiss a pull request review on a repository hosted in a Gitea instance. It is useful when a code review needs to be invalidated or overridden, for example, if the reviewer’s comments are no longer relevant due to new commits or changes in the pull request.

Practical scenarios include:

  • Automatically dismissing outdated reviews after new commits are pushed.
  • Managing pull request workflows by programmatically controlling review states.
  • Integrating with CI/CD pipelines to enforce review dismissal under certain conditions.

Properties

Name Meaning
Owner The owner (user or organization) of the repository where the pull request exists.
Repo The name of the repository containing the pull request.
Index The index number of the pull request within the repository (usually the pull request ID).
Id The unique identifier of the specific review to dismiss.
Message Optional message explaining why the review is being dismissed.
Priors Boolean flag indicating whether to dismiss prior reviews as well (true or false).

Output

The node outputs JSON data representing the result of the dismiss pull review API call. This typically includes details about the dismissed review status and any response metadata from the Gitea API. There is no binary output.

Dependencies

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

Troubleshooting

  • Invalid repository or owner: Ensure the "Owner" and "Repo" properties exactly match the target repository identifiers.
  • Incorrect pull request index or review id: Verify that the pull request index and review id correspond to existing entities; otherwise, the API will return errors.
  • Authentication errors: Confirm that the API key credential is valid and has sufficient permissions to dismiss pull request reviews.
  • API connectivity issues: Check network access to the Gitea server and that the base URL is correctly configured.
  • Message property usage: If the message is omitted or empty, some APIs might reject the request or dismiss without explanation.

Links and References

Discussion