Skip to content

Commit f267730

Browse files
authored
feat: Add coverage section for gitlab CF-1740 (#2424)
Section is pretty much a copy from gihub, edited section on github and gitlab mentioning that this feature is only available on gihtub.
1 parent 7f67bbe commit f267730

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

docs/repositories-configure/integrations/github-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ When there are new coverage results, Codacy updates the last coverage summary co
5454
![Coverage summary on GitHub](images/github-integration-coverage-summary.png)
5555

5656
!!! note
57-
This feature is only supported on GitHub Cloud.
57+
This feature is only supported on GitHub and GitLab Cloud.
5858

5959
### Suggested fixes {: id="suggest-fixes"}
6060

docs/repositories-configure/integrations/gitlab-integration.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ Adds comments on the lines of the merge request where Codacy finds new issues. C
4343

4444
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.
4545

46+
### Coverage summaries
47+
48+
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.
49+
50+
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.
51+
52+
!!! important
53+
**To get coverage summaries** you must also [add coverage to your repository](../../coverage-reporter/index.md).
54+
55+
![Coverage summary on GitLab](images/gitlab-integration-coverage-summary.png)
56+
57+
!!! note
58+
This feature is only supported on GitHub and GitLab Cloud.
59+
4660
![Merge request summary on GitLab](images/gitlab-integration-pr-summary.png)
4761

4862
### AI-Enhanced Comments
126 KB
Loading

0 commit comments

Comments
 (0)