2019-08-06 17:37:58 -04:00
|
|
|
import { endpoint } from "@octokit/endpoint";
|
2020-05-15 15:25:57 -04:00
|
|
|
import { getUserAgent } from "universal-user-agent";
|
2019-08-06 17:37:58 -04:00
|
|
|
import { VERSION } from "./version";
|
|
|
|
|
import withDefaults from "./with-defaults";
|
|
|
|
|
export const request = withDefaults(endpoint, {
|
|
|
|
|
headers: {
|
2020-05-15 15:25:57 -04:00
|
|
|
"user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`,
|
|
|
|
|
},
|
2019-08-06 17:37:58 -04:00
|
|
|
});
|