File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ jobs:
431431
432432 - bash : |
433433 set -exo pipefail
434- node $(BENCH_SCRIPTS)/postPerfResult.js --fragment $(Pipeline.Workspace)/comment.html
434+ node $(BENCH_SCRIPTS)/postPerfResult.js --fragment $(Pipeline.Workspace)/comment.html $(TSGOFLAG)
435435 displayName: Publish PR comment
436436 condition: and(succeeded(), eq(variables['IS_PR'], 'true'))
437437 env:
@@ -514,7 +514,7 @@ jobs:
514514
515515 - bash : |
516516 set -exo pipefail
517- node $(BENCH_SCRIPTS)/postPerfResult.js --failed
517+ node $(BENCH_SCRIPTS)/postPerfResult.js --failed $(TSGOFLAG)
518518 displayName: Publish PR comment
519519 env:
520520 DISTINCT_ID: ${{ parameters.DISTINCT_ID }}
Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ async function main() {
2424
2525 const args = minimist ( process . argv . slice ( 2 ) , {
2626 string : [ "fragment" ] ,
27- boolean : [ "failed" ] ,
27+ boolean : [ "failed" , "tsgo" ] ,
2828 } ) ;
2929
30+ const repo = args . tsgo ? "typescript-go" : "TypeScript" ;
3031 const gh = new Octokit ( { auth : GH_TOKEN } ) ;
3132 let body ;
3233 if ( args . failed ) {
@@ -50,7 +51,7 @@ async function main() {
5051 const resultsComment = await gh . rest . issues . createComment ( {
5152 issue_number : + SOURCE_ISSUE ,
5253 owner : "Microsoft" ,
53- repo : "TypeScript" ,
54+ repo,
5455 body,
5556 } ) ;
5657
@@ -66,7 +67,7 @@ async function main() {
6667 const statusComment = await gh . rest . issues . getComment ( {
6768 comment_id : + STATUS_COMMENT ,
6869 owner : "Microsoft" ,
69- repo : "TypeScript" ,
70+ repo,
7071 } ) ;
7172
7273 const oldComment = statusComment . data . body ;
@@ -84,7 +85,7 @@ async function main() {
8485 await gh . rest . issues . updateComment ( {
8586 comment_id : + STATUS_COMMENT ,
8687 owner : "Microsoft" ,
87- repo : "TypeScript" ,
88+ repo,
8889 body : newComment ,
8990 } ) ;
9091
You can’t perform that action at this time.
0 commit comments