Dataset: Reviews from pull requests
Entity: Pull Request Review
Field ID: state
Type: Select list
Description: The state of the review
APPROVEDthe review approves the changes made in the pull requestCHANGES_REQUESTEDthe review requests some changes to the pull request (GitHub/Bitbucket).COMMENTEDthe review is informational and does not intend to approve nor reject the pull request (GitHub only).DISMISSEDthe review has been dismissed and is no longer applicable (GitHub only).PENDINGthe review is in progress but has not been submitted yet (GitHub only).
Source: App
From: |
|
Github (Reviews) |
|
Gitlab (MRs) | Parse approval and changes requested event messages. |
Bitbucket (PRs) |
|
Azure DevOps (PR Threads) |
|
Jira | N/A |
ClickUp | N/A |
Trello | N/A |
Reporting Use Cases
The State field from the Reviews dataset is a critical attribute that captures the outcome of an individual review (e.g., APPROVED, CHANGES_REQUESTED). It is the primary tool for analyzing the nature of feedback, understanding reviewer behavior, and auditing your team's code review process.
Filtering by Review Outcome: You can create highly specific reports by filtering on the state of the reviews.
Find All Rejections: To see a list of all reviews where changes were requested, you can use a filter like
State = "CHANGES_REQUESTED". This can help you identify PRs that required rework.Track Approvals: To get a list of all approving reviews, you can filter where
State = "APPROVED".
Reporting on Feedback Patterns: Using state as a dimension is the most effective way to understand the type of feedback your team provides.
Review Distribution: A pie chart with
Stateas the dimension andCOUNT()as the metric will show you the proportion of reviews that are approvals, rejections, or simple comments. A high percentage ofCHANGES_REQUESTEDmight indicate issues with initial code quality, while a very high percentage ofAPPROVEDcould suggest a less critical review culture.Feedback by Reviewer: A stacked bar chart with
Authoras one dimension and state as the second will show you the feedback patterns of each individual reviewer, highlighting who tends to approve versus who is more likely to request changes.
Custom Formulas for Advanced KPIs: You can use this field to create metrics that measure the efficiency of your review process.
Approval Rate: You can calculate the overall approval rate with a custom formula like
ROUND(COUNT_IF(state == "APPROVED") / COUNT() * 100, 2).
