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

40 lines
1.6 KiB
Markdown
Raw Normal View History

2020-05-24 23:13:21 +05:30
---
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-05-24 23:13:21 +05:30
---
2022-03-02 08:16:31 +05:30
# Repository analytics for projects **(FREE)**
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
Use repository analytics to view information about a project's Git repository:
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
- Programming languages used in the repository.
- Code coverage history from last 3 months ([Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/33743) in GitLab 13.1).
- Commit statistics (last month).
- Commits per day of month.
- Commits per weekday.
- Commits per day hour (UTC).
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
Repository analytics is part of [GitLab Community Edition](https://gitlab.com/gitlab-org/gitlab-foss). It's available to anyone who has permission to clone the repository.
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
Repository analytics requires:
2020-05-24 23:13:21 +05:30
- An initialized Git repository.
- At least one commit in the default branch (`master` by default).
2021-02-22 17:27:13 +05:30
NOTE:
2022-03-02 08:16:31 +05:30
Without a Git commit in the default branch, the menu item isn't visible.
2021-06-08 01:23:25 +05:30
Commits in a project's [wiki](../project/wiki/index.md#track-wiki-events) are not included in the analysis.
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
## View repository analytics
To review repository analytics for a project:
2020-05-24 23:13:21 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-03-02 08:16:31 +05:30
1. On the left sidebar, select **Analytics > Repository**.
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
## How repository analytics chart data is updated
2020-05-24 23:13:21 +05:30
2022-03-02 08:16:31 +05:30
Data in the charts are queued. Background workers update the charts 10 minutes after each commit in the default branch.
Depending on the size of the GitLab installation, it may take longer for data to refresh due to variations in the size of background job queues.