chore: rebase from master

This commit is contained in:
JounQin 2020-07-15 21:55:04 +08:00 committed by GitHub
parent 1a53fb9a84
commit 95f1233ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});
}