diff --git a/docs/repositories-configure/integrations/github-integration.md b/docs/repositories-configure/integrations/github-integration.md index b3b9dc7d29..3b152b75a2 100644 --- a/docs/repositories-configure/integrations/github-integration.md +++ b/docs/repositories-configure/integrations/github-integration.md @@ -54,7 +54,7 @@ When there are new coverage results, Codacy updates the last coverage summary co ![Coverage summary on GitHub](images/github-integration-coverage-summary.png) !!! note - This feature is only supported on GitHub Cloud. + This feature is only supported on GitHub and GitLab Cloud. ### Suggested fixes {: id="suggest-fixes"} diff --git a/docs/repositories-configure/integrations/gitlab-integration.md b/docs/repositories-configure/integrations/gitlab-integration.md index 644ba8cb5e..4bbde82c70 100644 --- a/docs/repositories-configure/integrations/gitlab-integration.md +++ b/docs/repositories-configure/integrations/gitlab-integration.md @@ -43,6 +43,20 @@ Adds comments on the lines of the merge request where Codacy finds new issues. C Shows an overall view of the changes in the merge request, including new issues and metrics such as complexity and duplication. To enable this option, you must enable **Status checks** first. +### Coverage summaries + +Adds a pull request comment showing an overall view of the coverage metrics for the pull request, including details about the data that Codacy used to calculate the coverage variation and diff coverage metrics. + +When there are new coverage results, Codacy updates the last coverage summary comment if it's included in the last 5 comments of the pull request. Otherwise, Codacy creates a new comment. + +!!! important + **To get coverage summaries** you must also [add coverage to your repository](../../coverage-reporter/index.md). + +![Coverage summary on GitLab](images/gitlab-integration-coverage-summary.png) + +!!! note + This feature is only supported on GitHub and GitLab Cloud. + ![Merge request summary on GitLab](images/gitlab-integration-pr-summary.png) ### AI-Enhanced Comments diff --git a/docs/repositories-configure/integrations/images/gitlab-integration-coverage-summary.png b/docs/repositories-configure/integrations/images/gitlab-integration-coverage-summary.png new file mode 100644 index 0000000000..5cc5d7fe0b Binary files /dev/null and b/docs/repositories-configure/integrations/images/gitlab-integration-coverage-summary.png differ