body:`@${requester}\nThe results of the perf run you requested are in!\n<details><summary> Here they are:</summary><p>\n${outputTableText}\n</p>${benchmarkText}</details>`
});
console.log(`Results posted!`);
constnewCommentUrl=data.data.html_url;
constcomment=awaitgh.issues.getComment({
owner:"Microsoft",
repo:"TypeScript",
comment_id:+postedComment
});
constnewBody=`${comment.data.body}\n\nUpdate: [The results are in!](${newCommentUrl})`;
awaitgh.issues.updateComment({
owner:"Microsoft",
repo:"TypeScript",
comment_id:+postedComment,
body: newBody
});
}
catch(e){
constgh=newOctokit({auth});
awaitgh.issues.createComment({
issue_number:+source,
owner:"Microsoft",
repo:"TypeScript",
body:`Hey @${requester}, something went wrong when publishing results. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${buildId}&_a=summary)).`