GitHub App icon

GitHub App

Consume GitHub API using GitHub App authentication

Review → Get Many

AI-generated

Overview

This node operation retrieves multiple reviews for a specific pull request in a GitHub repository. It is useful for scenarios where you need to gather all review comments and statuses associated with a pull request, such as for code review automation, reporting, or integration with other tools.

Use Case Examples

  1. Fetch all reviews for pull request #42 in the 'n8n-io/n8n' repository owned by 'n8n-io'.
  2. Retrieve up to 50 reviews for a pull request to analyze reviewer feedback and approval status.

Properties

Name Meaning
Repository Owner The owner of the GitHub repository from which to get pull request reviews. This can be selected from a list, provided as a URL, or entered by name.
Repository Name The name of the GitHub repository containing the pull request. This can be selected from a list, provided as a URL, or entered by name.
PR Number The number of the pull request for which to retrieve reviews. This is required to identify the specific pull request.
Return All Whether to return all review results or limit the number of results returned.
Limit The maximum number of review results to return if 'Return All' is false. The limit can be set between 1 and 100.

Output

JSON

  • ``
    • id - The unique identifier of each review.
    • user - The user who submitted the review.
    • body - The content/body of the review.
    • state - The state of the review (e.g., approved, changes requested, commented).
    • submitted_at - The timestamp when the review was submitted.

Dependencies

  • GitHub API authentication via GitHub App credentials

Troubleshooting

  • Ensure the 'Repository Owner' and 'Repository Name' are correctly specified and accessible with the provided credentials.
  • Verify that the 'PR Number' corresponds to an existing pull request in the repository.
  • If the node returns an error about permissions, check that the GitHub App has the necessary access rights to the repository and pull requests.
  • If 'Return All' is set to false and the limit is too low, you might not get all reviews; adjust the limit accordingly.

Links

Discussion