diff --git a/docs/faq/troubleshooting/why-isnt-my-public-repository-being-analyzed.md b/docs/faq/troubleshooting/why-isnt-my-public-repository-being-analyzed.md index 3fb5cf63ca..de38e93588 100644 --- a/docs/faq/troubleshooting/why-isnt-my-public-repository-being-analyzed.md +++ b/docs/faq/troubleshooting/why-isnt-my-public-repository-being-analyzed.md @@ -1,3 +1,8 @@ # Why isn't my public repository being analyzed? -Codacy only analyzes open source repositories if the admin of the repository is a committer to that repository. +Codacy only analyzes open source repositories if the following conditions are met: + +- The admin of the repository is a committer to that repository. +- For GitHub repositories, **Status checks** is enabled in the [GitHub integration settings](../../repositories-configure/integrations/github-integration.md#status-checks) for the repository, either directly or via the [organization defaults](../../organizations/integrations/default-git-provider-integration-settings.md). + +If **Status checks** is disabled, Codacy will not run analysis for open source repositories on GitHub. diff --git a/docs/repositories-configure/integrations/github-integration.md b/docs/repositories-configure/integrations/github-integration.md index 6b01ccf443..456d1ada5b 100644 --- a/docs/repositories-configure/integrations/github-integration.md +++ b/docs/repositories-configure/integrations/github-integration.md @@ -26,6 +26,9 @@ Depending on the options that you enable, Codacy will automatically update pull Adds a report to your pull requests showing whether your pull requests and coverage are up to standards or not as configured on the [quality gate rules](../../repositories-configure/adjusting-quality-gates.md) for your repository. You can then optionally [block merging pull requests that aren't up to standards](../../getting-started/integrating-codacy-with-your-git-workflow.md#blocking-pull-requests). +!!! important + For open source repositories on GitHub, Codacy will not run analysis if **Status checks** is disabled. Make sure this setting is enabled to keep analysis running. + {% include-markdown "../../assets/includes/status-checks-important.md" %} ![Pull request status check on GitHub](images/github-integration-pr-status.png)