Files
release-action/node_modules/@octokit/request/dist-src/index.js
Nick Cipollo 7c50463644
Some checks failed
Test / check_pr (push) Has been cancelled
Prepare 1.8.4 release
2021-04-15 13:30:45 -04:00

10 lines
327 B
JavaScript

import { endpoint } from "@octokit/endpoint";
import { getUserAgent } from "universal-user-agent";
import { VERSION } from "./version";
import withDefaults from "./with-defaults";
export const request = withDefaults(endpoint, {
headers: {
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
},
});