-
Notifications
You must be signed in to change notification settings - Fork 45
feat: add codacy usage docs [LK-1802] #2535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joanasteodoro
wants to merge
7
commits into
master
Choose a base branch
from
add-codacy-usage-docs-lk-1802
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
53f0483
feat: add codacy usage docs [LK-1802]
joanasteodoro 3ab0f24
Apply suggestions from code review
joanasteodoro 7f3653f
Merge branch 'master' into add-codacy-usage-docs-lk-1802
joanasteodoro de32464
apply lipe review
joanasteodoro b40d349
Merge branch 'master' into add-codacy-usage-docs-lk-1802
joanasteodoro 322e562
Merge branch 'master' into add-codacy-usage-docs-lk-1802
joanasteodoro 443baa6
add more info on merged prs section
joanasteodoro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Codacy usage | ||
|
|
||
| The **Codacy usage** dashboard offers an overview of your organization's adoption of Codacy. You can filter the displayed list of repositories by their Git provider, as well as by their gate and coverage information within Codacy. Additionally, you can filter by selecting specific repositories or by using [the segments that you have set up](segments.md). | ||
|
|
||
|  | ||
|
|
||
| !!! important | ||
| Repositories not in Codacy is only available to GitHub accounts. | ||
|
|
||
| To view the **Codacy usage** dashboard: | ||
|
|
||
| - Select an organization from the top navigation bar. | ||
| - On the organization overview page, click the Codacy usage tab. | ||
|
|
||
| The Codacy usage dashboard includes the following sections to help you monitor Codacy adoption: | ||
|
|
||
| - [Repositories](#repositories) | ||
| - [Repositories evolution](#repositories-evolution) | ||
| - [Merged pull requests](#merged-pull-requests) | ||
| - [Top repositories](#top-repositories) | ||
|
|
||
| !!! tip | ||
| In each section, you can click on the ellipsis icon in the top right corner to export that section's data to CSV or JSON. | ||
|
|
||
| ## Repositories | ||
|
|
||
| This chart displays the distribution of repositories in Codacy and repositories that aren't. The doughnut chart also details the breakdown of Codacy repositories based on their configuration: those without quality gates, without coverage, without either gates or coverage, and those with both gates and coverage. Users can interact with the doughnut chart or the numerical data to filter the results. Applying a filter will also affect the repositories displayed in the evolution chart and the results will appear in the "Top repositories" list. | ||
joanasteodoro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|  | ||
|
|
||
| ## Repositories evolution | ||
|
|
||
| This chart shows the trend of repositories in your organization over time, considering the filters applied. You can hover over the chart to see the number of repositories on a specific date. You can also click on the chart to filter results. | ||
|
|
||
|  | ||
|
|
||
| ## Merged pull requests | ||
|
|
||
| This chart tracks the total volume of pull requests merged across your Codacy-managed repositories. It serves as a high-level health check to ensure that your team's development velocity is aligned with your quality standards. | ||
|
|
||
| ### Understanding the categories | ||
|
|
||
| - Passing Gates: These PRs met all your quality standards (e.g., coverage, complexity, security) before being merged. | ||
|
Check failure on line 43 in docs/organizations/codacy-usage.md
|
||
| - Failing Gates: PRs merged despite failing one or more quality checks. | ||
| - Without Gates: PRs merged into repositories where no quality gates are configured. | ||
| - Never Analyzed: PRs that reached a "Merged" status without Codacy completing an analysis. | ||
|
|
||
| #### Why are some PRs "Never analyzed"? | ||
|
|
||
| If you see high numbers here, it usually boils down to two scenarios: | ||
|
|
||
| 1. A developer merged the PR immediately after opening it, before the Codacy analysis could finish. | ||
| 2. In self-service organizations, if a PR is authored by an email/user not yet added to your Codacy seat count, the analysis may be skipped. | ||
|
|
||
| If you notice a high volume of PRs in Without gates, or Never analyzed categories, consider the following actions: | ||
|
|
||
| #### Without gates: | ||
|
|
||
| To ensure your code meets organizational standards, you should define a Quality Gate rule for the repository, such as setting thresholds for "New issues > 0" or "Coverage < 80%". | ||
|
Check failure on line 59 in docs/organizations/codacy-usage.md
|
||
|
|
||
| #### Never analyzed: | ||
|
|
||
| To ensure your team adjusts their workflow to wait for the "Codacy/Analysis" check to turn green before merging. Additionally, you should check your [seat management](../organizations/managing-people.md) to confirm that all active contributors are correctly mapped to a Codacy seat. | ||
|
|
||
| Interacting with the chart allows you to filter the data, with the resulting repositories displayed in the "Top repositories" list. | ||
|
|
||
| !!! note | ||
| Merged pull requests data is only from repositories that are in Codacy. | ||
|
|
||
|  | ||
|
|
||
| ## Top repositories | ||
|
|
||
| The list shows a maximum of 10 repositories from your Git provider. You can use filters to display repositories that aren't yet in Codacy, or repositories that are already in Codacy. For repositories in Codacy, the list can also group them by specific metrics such as gates, coverage, and merged pull request information. | ||
|
|
||
|  | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.