-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send total coverage back to GitLab instead of new coverage
The coverage send back via the GitLab API should be the total coverage of the project, not the coverage of the new code in the PR. The GitLab docs explicitly mention this: https://docs.gitlab.com/ee/api/commits.html#post-the-build-status-to-a-commit The coverage reported by decorating the PR via a comment is not affected; this still shows both the total and new coverage. Note that there is an open GitLab issue for natively displaying new coverage for just the diff of a PR (https://gitlab.com/gitlab-org/gitlab/-/issues/20895), but this is not yet implemented. In addition, reporting coverage back is optional. So if there is no coverage information, we do not report it back.
- Loading branch information
Showing
3 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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