GPR authentication support
This commit is contained in:
1 parent
6c0e2a2a6b
commit
6bd4969ec6
518 files changed
+95599
-2875
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
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()}`
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user