Merge Request Analytics (PREMIUM)
- Introduced in GitLab 13.3.
- Moved to GitLab Premium in 13.9.
Merge Request Analytics helps you understand the efficiency of your code review process, and the productivity of your team.
Merge Request Analytics displays information that will help you evaluate the efficiency and productivity of your merge request process.
The Throughput chart shows the number of merge requests merged, by month. Merge request throughput is a common measure of productivity in software engineering. Although imperfect, the average throughput can be a meaningful benchmark of your team's overall productivity.
To access Merge Request Analytics:
- On the top bar, select Menu > Projects and find your project.
- On the left sidebar, select Analytics > Merge request.
This feature is designed for development team leaders and others who want to understand broad patterns in code review and productivity.
You can use Merge Request Analytics to expose when your team is most and least productive, and identify improvements that might substantially accelerate your development cycle.
Merge Request Analytics could be used when:
- You want to know if you were more productive this month than last month, or 12 months ago.
- You want to drill into low- or high-productivity months to understand the work that took place.
Visualizations and data
The following visualizations and data are available, representing all merge requests that were merged in the given date range.
Mean time to merge
Introduced in GitLab 13.9.
The mean time to merge (MTTM) metric shows the average time between when a merge request is created, and when it is merged. To view how the MTTM changes over time, compare MTTM across different date ranges.
The throughput chart shows the number of merge requests merged per month.
Introduced in GitLab 13.3.
The Throughput table displays the most recent merge requests merged in the date range. The table displays up to 20 merge requests at a time. If there are more than 20 merge requests, you can paginate to them. For each merge request, you can review the following data:
- Title (as a link to the merge request itself)
- Pipeline status
- Label count
- Comment count
- Approval count (if approved)
- Date merged
- Time to merge
- Commit count
- Pipeline count
- Line change counts
Filter the data
Introduced in GitLab 13.4
You can filter the data that is presented on the page based on the following parameters:
- Source branch
- Target branch
To filter results:
- Select the filter bar.
- Select a parameter to filter by.
- Select a value from the autocompleted results, or enter search text to refine the results.
- Press Enter.
The date range is set to the past 12 months by default. You can modify the date range by changing the "From" and/or "To" values that appear alongside the filter bar. After changing either value, the data displayed on the page will update automatically.
Tip: Bookmark preferred settings
You can bookmark preferred filters and date ranges. After you have applied a change to the filter bar or the date range, you'll see that information in the URL. You can create a bookmark for those preferred settings in your browser.
The Merge Request Analytics feature can be accessed only: