From 72b7a6527eff1bbcceeac0ae7f991c74c00947f9 Mon Sep 17 00:00:00 2001 From: Orta Date: Mon, 28 Oct 2019 14:07:36 -0400 Subject: [PATCH] Adds accept header to the dispatch request when requesting a playground build of monaco (#34763) --- scripts/post-vsts-artifact-comment.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/post-vsts-artifact-comment.js b/scripts/post-vsts-artifact-comment.js index 5b1685ae040..4e2abb3e7e5 100644 --- a/scripts/post-vsts-artifact-comment.js +++ b/scripts/post-vsts-artifact-comment.js @@ -49,7 +49,8 @@ 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 }) + await gh.request("POST /repos/orta/make-monaco-builds/dispatches", + { event_type: +process.env.SOURCE_ISSUE, headers: { "Accept": "application/vnd.github.everest-preview+json" }}) } main().catch(async e => {