Merge pull request #33536 from orta/ping_for_playgrounds

When a packed version of TypeScript is requested, request a build of Monaco
This commit is contained in:
Orta
2019-09-20 17:03:12 -04:00
committed by GitHub
+8 -1
View File
@@ -28,6 +28,10 @@ async function main() {
type: "token",
token: process.argv[2]
});
// Please keep the strings "an installable tgz" and "packed" in this message, as well as the devDependencies section,
// so that the playgrounds deployment process can find these comments.
await gh.issues.createComment({
number: +process.env.SOURCE_ISSUE,
owner: "Microsoft",
@@ -43,6 +47,9 @@ async function main() {
and then running \`npm install\`.
`
});
// Send a ping to https://github.com/orta/make-monaco-builds#pull-request-builds
await gh.request("POST /repos/orta/make-monaco-builds/dispatches", { event_type: +process.env.SOURCE_ISSUE })
}
main().catch(async e => {
@@ -61,4 +68,4 @@ main().catch(async e => {
body: `Hey @${process.env.REQUESTING_USER}, something went wrong when looking for the build artifact. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)).`
});
}
});
});