mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-14 13:46:54 +00:00
10 lines
321 B
JavaScript
Executable File
10 lines
321 B
JavaScript
Executable File
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()}`
|
|
}
|
|
});
|