The table presents a sequence of events for a PR from creation to merge. Note that the stats are only computed when the PR is merged, not at each individual step.
Event | Step | Insights impact |
---|---|---|
1 | Author creates a PR in draft state that adds 10 lines of code and deletes 5 lines of code | Lines of code added increases by 10 for Author; lines of code deleted increase by 5 for Author |
2 | Author publishes the PR, making it ready for review | Starts the virtual timer for publish to merge time calculation |
3 | Author requests reviews from three people | Starts the virtual timer for response time calculation |
4 | Reviewer A requests changes on the PR | PRs reviewed increases by 1 for Reviewer A; Reviewer A response time = time at event 4 - time at event 3 ; wait time until first review for Author = time at event 4 - time at event 2 |