We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2004ae0 commit 0628e09Copy full SHA for 0628e09
.github/workflows/mypy_primer_comment.yml
@@ -51,7 +51,9 @@ jobs:
51
let data = fs.readFileSync('fulldiff.txt', { encoding: 'utf8' })
52
// posting comment fails if too long, so truncate
53
if (data.length > 30000) {
54
- data = data.substring(0, 30000) + `\n\n... (truncated ${data.length - 30000} chars) ...\n`
+ let truncated_data = data.substring(0, 30000)
55
+ let lines_truncated = data.split('\n').length - truncated_data.split('\n').length
56
+ data = truncated_data + `\n\n... (truncated ${lines_truncated} lines) ...\n`
57
}
58
59
console.log("Diff from mypy_primer:")
0 commit comments