Skip to content

Commit

Permalink
When a packed version of TypeScript ios requested, also send a reques…
Browse files Browse the repository at this point in the history
…t to create a build of monaco for the playground
  • Loading branch information
orta committed Sep 20, 2019
1 parent d7c83f0 commit 26c816f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/post-vsts-artifact-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 => {
Expand All @@ -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)).`
});
}
});
});

0 comments on commit 26c816f

Please sign in to comment.