debian-mirror-gitlab/doc/user/analytics/merge_request_analytics.md

79 lines
2.9 KiB
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
2022-04-04 11:22:00 +05:30
description: "Merge request analytics help you understand the efficiency of your code review process, and the productivity of your team." # Up to ~200 chars long. They will be displayed in Google Search snippets. It may help to write the page intro first, and then reuse it here.
2022-11-25 23:54:43 +05:30
stage: Plan
2021-02-22 17:27:13 +05:30
group: Optimize
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-10-24 23:57:45 +05:30
---
2022-04-04 11:22:00 +05:30
# Merge request analytics **(PREMIUM)**
2020-10-24 23:57:45 +05:30
2021-06-08 01:23:25 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229045) in GitLab 13.3.
> - Moved to GitLab Premium in 13.9.
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
Use merge request analytics to view:
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
- The number of merge requests your organization merged per month.
2023-04-23 21:23:45 +05:30
- The average time between merge request creation and merge event.
- Information about each merged merge request (such as milestone, commits, line changes, and assignees).
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
You can use merge request analytics to identify:
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
- Low or high productivity months.
2023-04-23 21:23:45 +05:30
- The efficiency and productivity of your merge request and code review processes.
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
## View merge request analytics
2023-04-23 21:23:45 +05:30
Prerequisite:
- You must have at least the Reporter role.
2022-04-04 11:22:00 +05:30
To view merge request analytics:
2021-11-11 11:23:49 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2021-11-11 11:23:49 +05:30
1. On the left sidebar, select **Analytics > Merge request**.
2020-10-24 23:57:45 +05:30
2022-08-27 11:52:29 +05:30
## View the number of merge requests in a date range
2020-10-24 23:57:45 +05:30
2022-04-04 11:22:00 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/232651) in GitLab 13.3.
> - Filtering [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229266) in GitLab 13.4
2020-10-24 23:57:45 +05:30
2022-08-27 11:52:29 +05:30
To view the number of merge requests merged during a specific date range:
2020-10-24 23:57:45 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-04-04 11:22:00 +05:30
1. On the left sidebar, select **Analytics > Merge request**.
2022-05-07 20:08:51 +05:30
1. Optional. Filter results:
2022-04-04 11:22:00 +05:30
1. Select the filter bar.
1. Select a parameter.
1. Select a value or enter text to refine the results.
1. To adjust the date range:
- In the **From** field, select a start date.
- In the **To** field, select an end date.
2020-10-24 23:57:45 +05:30
2022-07-16 23:28:13 +05:30
The **Throughput** chart shows issues closed or merge requests merged (not closed) over a period of
time.
2020-11-24 15:15:51 +05:30
2022-04-04 11:22:00 +05:30
The table shows up to 20 merge requests per page, and includes
2023-04-23 21:23:45 +05:30
the following information about each merge request:
- Merge request name
- Date merged
- Time to merge
- Milestone
- Commits
- Pipelines
- Line changes
- Assignees
2020-11-24 15:15:51 +05:30
2022-04-04 11:22:00 +05:30
## View average time between merge request creation and merge
2021-04-17 20:07:23 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229389) in GitLab 13.9.
2023-04-23 21:23:45 +05:30
The number in **Mean time to merge** shows the average time between when a merge request is
created and when it's merged. Closed and not yet merged merge requests are not included.
2020-11-24 15:15:51 +05:30
2022-04-04 11:22:00 +05:30
To view **Mean time to merge**:
2020-11-24 15:15:51 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-07-16 23:28:13 +05:30
1. On the left sidebar, select **Analytics > Merge request**. The **Mean time to merge** number
2023-04-23 21:23:45 +05:30
is displayed on the dashboard.