PR Intelligence
Full lifecycle tracking for every pull request -- state, reviews, cycle time, and the metrics that feed your KPIs.
What It Tracks
Every pull request is tracked through its full lifecycle with structured state management. InteliG ingests PR data from your git provider and maintains the complete history of each PR's progression.
PR states:
Open
Active and awaiting review or merge
Merged
Changes accepted and integrated
Closed
Rejected or abandoned without merge
Draft
Work in progress, not ready for review
Each PR record includes the PR number, title, source and target branches, author information, commit count, review count, additions, deletions, changed file count, and all relevant timestamps (created, updated, merged, closed).
Review Tracking
Every review on a PR is captured with its reviewer, body text, timestamp, and state. Review states tracked by the system:
- → Approved -- reviewer approved the changes
- → Changes Requested -- reviewer requested modifications before merge
- → Commented -- reviewer left feedback without an explicit approval or rejection
- → Pending -- review requested but not yet submitted
- → Dismissed -- a previously submitted review was dismissed
- → Requested -- review has been requested from this person
Review data feeds into multiple KPIs: review coverage (percentage of PRs that received reviews), review responsiveness (how quickly reviews happen), first-pass approval rate, and rework rate.
Cycle Time
Cycle time is computed from when a PR is created to when it is merged or closed. For open PRs, it computes against the current time. The result is formatted in human-readable durations:
This computation is straightforward and intentional. It measures elapsed wall-clock time from open to resolution. Cycle time patterns across your organization reveal process bottlenecks, review delays, and delivery velocity changes that are not visible in standups or sprint ceremonies.
PR Metrics That Feed KPIs
Pull request data feeds directly into the Code Intelligence KPI system. These are the metrics derived from PR analysis:
Average PR Cycle Time
Mean time from open to merge across all PRs in the selected scope and date range.
Average Merge Velocity
Merge throughput -- how quickly PRs are being integrated.
PR Review Coverage
Percentage of PRs that received at least one review before merge.
Review Responsiveness
How quickly requested reviews are submitted after being requested.
Rework Rate
Percentage of PRs that received "Changes Requested" reviews before eventually being merged.
First-Pass Approval Rate
Percentage of PRs approved on the first review without requiring changes.
All metrics are available at Organization, Team, and Contributor scopes with configurable date ranges.
Detail View
The PR detail view is a master-detail layout. The list shows PR number, title, state, author, branch info, and summary counts. Selecting a PR opens a detail sheet with the full record:
- → PR number and title
- → Full description
- → Source and target branch
- → Commits list -- every commit in the PR with SHA, message, author, and timestamp
- → Reviews list -- every review with reviewer info, state, body, and timestamp
- → Additions, deletions, and changed files
- → Repository full name -- e.g., "InteliGHQ/intelig-backend"
- → All timestamps -- created, updated, merged, closed
Filtering
The PR list supports filtering across multiple dimensions to find exactly what you need:
- → Repository -- filter by one or more connected repositories
- → Branch -- filter by branch name
- → State -- filter by one or more states (Open, Merged, Closed, Draft)
- → Date range -- from and to date boundaries
- → Search -- free text search across PR titles and content
Pagination is built in with configurable page size for organizations with high PR volume.
Querying PR Intelligence
PR data feeds into Cognis for natural language queries: