PR activity is a measure of how much review and code revision activity is associated with a PR.
In this article
Which reports use PR activity?
Recent PR activity is available in the PR details pin drawer in reports like Work log, PR resolution, and Review workflow.
PR activity—also known as Raw activity—is used when sorting PRs from least to most or most to least activity in reports like Review workflow.
What does PR activity measure?
PR activity measures the cumulative amount of activity on a PR once it's opened.
Recent PR activity is a measure of how active a PR has been recently on a scale of: None, Low, Modest, Normal, Elevated, and High.
These metrics give you a way to gauge how much chatter is happening around a PR without having to read the actual comments and commits on the PR. This is particularly useful when coupled with Time to merge. A long-running PR coupled with Elevated or High activity suggests disagreement or uncertainty and often warrants a manager's attention.
Generally speaking, you want to look for outliers. When you find long-running, low-activity PRs, nudge your team to merge or close the PR. Review PRs with a lot of activity for both tone and content. Use this information to understand if discussions are degenerating into arguments, going in circles, or genuinely driving toward resolution.
How is PR activity calculated?
PR activity is determined by a raw count of comments and follow-on commits associated with a PR. As the PR ages, its raw activity does not decay. PR activity can only be accrued.
Recent PR activity is determined by the volume of comments and follow-on commits in the PR. This metric has a built-in decay function, so older activity is scored as less impactful to the calculation than recent activity.
What data is included in PR activity?
PRs accrue activity regardless of their status.
Comments and commits aren't counted toward PR activity if they're:
- Created by a user excluded from metrics
- Created by a hidden user
- An excluded PR comment
- A manually excluded commit
- A commit excluded through outlier detection