mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fix primer comment workflow (#7545)
This commit is contained in:
2
.github/workflows/mypy_primer_comment.yml
vendored
2
.github/workflows/mypy_primer_comment.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
let data = fs.readFileSync('fulldiff.txt', { encoding: 'utf8' })
|
||||
// posting comment fails if too long, so truncate
|
||||
if (data.length > 30000) {
|
||||
data = data.substring(0, 30000) + `\n\n... (truncated ${diff.length - 30000} chars) ...\n`
|
||||
data = data.substring(0, 30000) + `\n\n... (truncated ${data.length - 30000} chars) ...\n`
|
||||
}
|
||||
|
||||
let body
|
||||
|
||||
Reference in New Issue
Block a user