Integrations
GitHub
APIs
List Review History for Pull Request

List Review History for a Pull Request

This method enables users to list the review history for a pull request in a GitHub repository.

For more information on the API for listing reviews for a pull request, see List reviews for a pull request (opens in a new tab).

To use this API endpoint for a private repository, your GitHub token requires the following scopes:

For a Fine-grained token:

- "Pull requests" repository permissions (read)

Alternatively, for a Token (classic):

- repo

SDK Import:

from admyral.actions import list_github_review_history_for_pull_request

Arguments

Argument NameDescriptionRequired
Repository Owner repo_ownerThe owner of the repository.yes
Repository Name repo_nameThe name of the repository.yes
Pull Request Number pull_request_numberThe number identifier of the pull request.yes
State stateThe expected state of the review. Possible states: APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED.-

Returns

A JSON array of reviews.

Required Secrets

Secret PlaceholderDescription
GITHUB_SECRETGitHub secret. See GitHub setup

SDK Example

commit_diff = list_github_review_history_for_pull_request(
	repo_owner="admyral",
	repo_name="admyral",
	pull_request_number="3",
	state="APPROVED",
	secrets={"GITHUB_SECRET": "your_github_secret"}
)