@@ -47,6 +47,7 @@ for (const path of metadataFilePaths) {
47
47
const title = entrypoint === "tsserver"
48
48
? `[ServerErrors][${ language } ] ${ newTscResolvedVersion } `
49
49
: `[NewErrors] ${ newTscResolvedVersion } vs ${ oldTscResolvedVersion } ` ;
50
+
50
51
const description = entrypoint === "tsserver"
51
52
? `The following errors were reported by ${ newTscResolvedVersion } `
52
53
: `The following errors were reported by ${ newTscResolvedVersion } , but not by ${ oldTscResolvedVersion } ` ;
@@ -63,25 +64,10 @@ This run considered ${repoCount} popular TS repos from GH (after skipping the to
63
64
| Outcome | Count |
64
65
|---------|-------|
65
66
${ Object . keys ( statusCounts ) . sort ( ) . map ( status => `| ${ status } | ${ statusCounts [ status as RepoStatus ] } |\n` ) . join ( "" ) }
66
- </details>
67
-
68
-
69
- ` ;
67
+ </details>` ;
70
68
71
69
const resultPaths = pu . glob ( resultDirPath , `**/*.${ resultFileNameSuffix } ` ) . sort ( ( a , b ) => path . basename ( a ) . localeCompare ( path . basename ( b ) ) ) ;
72
70
const outputs = resultPaths . map ( p => fs . readFileSync ( p , { encoding : "utf-8" } ) . replace ( new RegExp ( artifactFolderUrlPlaceholder , "g" ) , artifactsUri ) ) ;
73
71
74
-
75
- // GH caps the maximum body length, so paginate if necessary
76
- const bodyChunks : string [ ] = [ ] ;
77
- let chunk = header ;
78
- for ( const output of outputs ) {
79
- if ( chunk . length + output . length > 65535 ) {
80
- bodyChunks . push ( chunk ) ;
81
- chunk = "" ;
82
- }
83
- chunk += output ;
84
- }
85
- bodyChunks . push ( chunk ) ;
86
-
72
+ const bodyChunks = [ header , ...outputs ] ;
87
73
git . createIssue ( postResult , title , bodyChunks , /*sawNewErrors*/ ! ! outputs . length ) ;
0 commit comments