Skip to content

Commit f5adbac

Browse files
committed
feat: pre-authenticationd [@octokit/core](https://github.com/octokit/core.js) instance
1 parent 8cf6662 commit f5adbac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Octokit as Core } from "@octokit/core";
22
import { createActionAuth } from "@octokit/auth-action";
33

4+
import { VERSION } from "./version";
5+
46
export const Octokit = Core.defaults({
5-
auth: createActionAuth()
7+
auth: createActionAuth(),
8+
userAgent: `octokit-action.js/${VERSION}`
69
});

src/version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const VERSION = "0.0.0-development";

0 commit comments

Comments
 (0)