You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/coverage_comment.yml
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,8 +45,15 @@ jobs:
45
45
let body = 'No coverage data available.';
46
46
if (fs.existsSync(reportPath)) {
47
47
body = fs.readFileSync(reportPath, 'utf8');
48
+
const divider = '-------------';
49
+
// Start after the second divder, where changed files are listed.
50
+
const start = body.indexOf(divider, 1);
51
+
body = body.substring(start);
48
52
}
49
-
const commentBody = '### 📊 Coverage Report for Changed Files\n\n```\n' + body + '\n```\n\n**Note:** Missing lines are warnings only. Some lines may not be covered by SQLite tests as they are database-specific.\n\nFor more information about code coverage on pull requests, see the [contributing documentation](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage-on-pull-requests).';
53
+
const commentBody = (
54
+
'#### Uncovered lines in changed files\n\n```\n' + body + '```\n' +
55
+
+ '**Note:** Missing lines are warnings only. Some database-specific lines may not be measured. [More information](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage-on-pull-requests)'
0 commit comments