Skip to content

Commit 26c816f

Browse files
committed
When a packed version of TypeScript ios requested, also send a request to create a build of monaco for the playground
1 parent d7c83f0 commit 26c816f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/post-vsts-artifact-comment.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ async function main() {
2828
type: "token",
2929
token: process.argv[2]
3030
});
31+
32+
// Please keep the strings "an installable tgz" and "packed" in this message, as well as the devDependencies section,
33+
// so that the playgrounds deployment process can find these comments.
34+
3135
await gh.issues.createComment({
3236
number: +process.env.SOURCE_ISSUE,
3337
owner: "Microsoft",
@@ -43,6 +47,9 @@ async function main() {
4347
and then running \`npm install\`.
4448
`
4549
});
50+
51+
// Send a ping to https://github.com/orta/make-monaco-builds#pull-request-builds
52+
await gh.request("POST /repos/orta/make-monaco-builds/dispatches", { event_type: +process.env.SOURCE_ISSUE })
4653
}
4754

4855
main().catch(async e => {
@@ -61,4 +68,4 @@ main().catch(async e => {
6168
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)).`
6269
});
6370
}
64-
});
71+
});

0 commit comments

Comments
 (0)