gh-action-bump-version/node_modules/@octokit/graphql/index.js

16 lines
400 B
JavaScript
Raw Normal View History

2021-08-07 21:20:18 +00:00
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
}
})