PullRequestReviews
Stores details of reviews conducted on pull requests, including reviewer actions (approved, requested changes, commented) and timestamps.
View-Specific Information
Select
The add-in uses the GitHub API to process WHERE clause conditions that are built with the following columns and operators:
- Author supports the '=' comparison operator.
- PullRequestNumber supports the '=,IN' comparison operators.
- State supports the '=,IN' comparison operators.
For example, the following queries are processed server-side:
SELECT * FROM [PullRequestReviews]
SELECT * FROM [PullRequestReviews] WHERE [Author] = 'Val1'
SELECT * FROM [PullRequestReviews] WHERE [PullRequestNumber] = 123
SELECT * FROM [PullRequestReviews] WHERE [State] = 'PENDING'
The add-in processes other filters client-side within the add-in.
Columns
Name | Type | References | OrderBySupport | Description |
Id [KEY] | String | The unique identifier for the pull request review, used to distinguish this review from others in the system. | ||
Body | String | The content of the review, written in Markdown format, which typically includes feedback or comments about the pull request. | ||
BodyText | String | The plain text version of the review's body, with all Markdown formatting removed for a simpler, text-only view. | ||
BodyHTML | String | The HTML-rendered version of the review body, designed for displaying the review as formatted text on the web. | ||
Author | String | The GitHub username of the individual who authored the review, indicating the person who provided the feedback. | ||
AuthorAssociation | String | The association of the author with the pull request subject, such as 'OWNER', 'CONTRIBUTOR', or 'COLLABORATOR', indicating their role in the project. | ||
Editor | String | The GitHub username of the individual who last edited the review comment, showing who made the most recent changes to the review. | ||
IsMinimized | Bool | Indicates whether the review comment has been minimized or collapsed by the viewer, possibly to reduce clutter in the UI. | ||
MinimizedReason | String | Describes the reason why the comment was minimized, such as it being less relevant or flagged by the viewer. | ||
CreatedViaEmail | Bool | Indicates whether the review comment was created through an email reply to the review request, often from email notifications. | ||
IncludesCreatedEdit | Bool | Indicates whether the review comment includes an edit along with its creation data, reflecting that the comment has been modified since it was first posted. | ||
ResourcePath | String | The relative HTTP path for accessing the review comment through the GitHub API, used for programmatically retrieving the review. | ||
Url | String | The full HTTP URL that directs to the review comment directly on GitHub, allowing users to view it in the GitHub interface. | ||
LastEditedAt | Datetime | The timestamp indicating when the review comment was last edited, showing when the comment was last updated. | ||
PublishedAt | Datetime | The timestamp indicating when the review comment was first published and visible to others. | ||
CreatedAt | Datetime | The timestamp indicating when the review comment was created, marking the original moment it was submitted. | ||
UpdatedAt | Datetime | The timestamp indicating when the review comment was last updated, reflecting any edits made since its creation. | ||
ViewerDidAuthor | Bool | Indicates whether the current viewer is the author of the review comment. A value of 'true' means the viewer is the one who wrote the review. | ||
ViewerCanDelete | Bool | Indicates whether the current viewer has permission to delete the review comment, typically based on their role in the repository. | ||
ViewerCanMinimize | Bool | Indicates whether the current viewer can minimize or collapse the review comment in their interface to streamline the view. | ||
ViewerCanReact | Bool | Indicates whether the current viewer has the ability to react to the review comment, such as adding emojis or other reactions. | ||
ViewerCanUpdate | Bool | Indicates whether the current viewer has permission to edit or update the review comment after it has been posted. | ||
ViewerCannotUpdateReasons | String | Lists the reasons why the current viewer is unable to update the review comment, which can include permissions or restrictions. | ||
ReactionGroups | String | A list of reaction types (such as 'thumbs-up' or 'thumbs-down') grouped by the content left on the review comment, showing the reactions the comment has received. | ||
ViewerId | String | The unique identifier of the viewer interacting with the review comment, typically used to track the individual’s actions and permissions. | ||
PullRequestId | String |
PullRequests.Id | The unique identifier of the pull request associated with this review, linking the review directly to the specific pull request. | |
PullRequestNumber | Int | The number assigned to the pull request associated with this review, providing a reference for the review within the repository. | ||
CommitId | String | The identifier of the commit that this review is associated with, linking the review to a specific commit in the pull request. | ||
SubmittedAt | Datetime | The timestamp when the pull request review was officially submitted, indicating when the review was completed and submitted to the system. | ||
State | String | The current state of the pull request review, indicating its status (for example, 'APPROVED', 'CHANGES_REQUESTED'). This reflects the reviewer's decision regarding the pull request.
The allowed values are PENDING, COMMENTED, APPROVED, CHANGES_REQUESTED, DISMISSED. | ||
AuthorCanPushToRepository | Bool | Indicates whether the author of the review has the necessary permissions to push changes directly to the repository. This can be useful for identifying if the reviewer can make updates themselves. | ||
FullDatabaseId | Long | The primary key identifier for the review comment in the database, represented as a BigInt. This is used internally for database queries and tracking. |