From 95f1233ab96ce18f5b538513e02566c76f14f870 Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 15 Jul 2020 21:55:04 +0800 Subject: [PATCH] chore: rebase from master --- src/utils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils.js b/src/utils.js index 364286f..28983b5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -43,13 +43,11 @@ function parseBoolean(value) { } } -function request(data) { +function request(data, headers) { return axios({ url: "https://api.github.com/graphql", method: "post", - headers: { - Authorization: `bearer ${process.env.GITHUB_TOKEN}`, - }, + headers, data, }); }