mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-11-28 01:01:03 -05:00
15 lines
400 B
JavaScript
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
|
|
}
|
|
})
|