1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2024-12-24 14:12:41 +00:00
setup-node/node_modules/@octokit/graphql/index.js
2019-08-05 15:18:52 -04:00

15 lines
400 B
JavaScript

const { request } = require('@octokit/request')
const getUserAgent = require('universal-user-agent')
const version = require('./package.json').version
const userAgent = `octokit-graphql.js/${version} ${getUserAgent()}`
const withDefaults = require('./lib/with-defaults')
module.exports = withDefaults(request, {
method: 'POST',
url: '/graphql',
headers: {
'user-agent': userAgent
}
})