Engineering summary: Version control
Purpose
Version control summary shows metrics related to code management such as repositories and commits statistics. Metric values are aggregated for the items selected in Project settings/Version Control system (e.g. GitLAB).
How metric helps
Version control summary helps to understand the overall effectiveness of a code management process at an interested level: from a repository down to a comit.
How metric works
Chart overview
Chart provides several views:
1 Main view: shows aggregated values for the metrics (on the left) and the same for each repository (table on the right):
2 Single view: it opens by click on an item in the table at Main view. Single view reveals metrics values for a selected repository:
3 Drill down: it opens by click on a metric name at Single view (a hyperlink). Depending on a metric there opens a chart revealing a metric trend in time:
Calculation
Chart is based on a Version Control data source configuration: only selected repositories are taken into account:
See also GIT configuration
.
Metrics included into Main view:
Metric | Calculation | Unit of Measure |
---|---|---|
Repositories | number of selected repositories | item |
Merge requests | number of merge requests in all selected repositories | item |
Accepted | number of accepted merge requests in all selected repositories | item |
Rejected | number of rejected merge requests in all selected repositories | item |
In review | number of merge requests in review in all selected repositories | item |
Commits | number of commits in all selected repositories | item |
Metrics included into single view:
Metric | Calculation | Unit of Measure |
---|---|---|
Branches | number of branches in a selected repository during its existence | item |
Commits | number of commits during in a selected repository during its existence | item |
Committers | number of committers in a selected repository during its existence | item |
Merge requests | number of merge requests in a selected repository during its existence | item |
Accepted | number of accepted merge requests in a selected repository during its existence | item |
Rejected | number of rejected merge requests in a selected repository during its existence | item |
In review | number of merge requests in review in a selected repository during its existence | item |
Added lines of code | number of added lines of code in commits for the last week | item |
Removed lines of code | number of removed lines of code in commits for the last week | item |
Updated lines of code | number of updated lines of code in commits for the last week | item |
By click on a hyperlink in single view the following charts open:
Hyperlink | Chart to show |
---|---|
Commits | |
Committers | |
Added lines of code | |
Removed lines of code |
Data Source
Data for the chart can be collected from GIT.