fix: correct preview header

This commit is contained in:
Michael Shick 2020-04-08 16:43:41 -07:00
parent 5aa3ae408c
commit 4aae273d68
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61

View file

@ -2,11 +2,13 @@ const core = require("@actions/core");
const github = require("@actions/github");
const { HttpClient, Headers } = require("@actions/http-client");
const previewHeader = "application/vnd.github.groot-preview+json";
const getPulls = async (repoToken, repo, commitSha) => {
const http = new HttpClient("http-client-add-pr-comment");
const additionalHeaders = {
[Headers.Accept]: "application/vnd.github.sailor-v-preview+json",
[Headers.Accept]: previewHeader,
[Headers.Authorization]: `token ${repoToken}`,
};