We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
globalThis.gitClerkConfig
ghConfig
1 parent 0bdc684 commit 229fef9Copy full SHA for 229fef9
src/api/index.js
@@ -29,7 +29,8 @@ export async function initOctokit() {
29
if (config) {
30
configAuth =
31
(config.githubAuthToken !== undefined &&
32
- (config.githubAuthToken === "string"
+ (typeof config.githubAuthToken === "string" ||
33
+ config.githubAuthToken instanceof String
34
? config.githubAuthToken
35
: await config.githubAuthToken())) ||
36
import.meta.env.GITCLERK_GITHUB_TOKEN;
@@ -55,6 +56,7 @@ export async function initOctokit() {
55
56
...config,
57
config: { auth, username, repo: repoName },
58
};
59
+ if (!globalThis.gitClerkConfig) globalThis.gitClerkConfig = {};
60
globalThis.gitClerkConfig.ghConfig = globalThis.ghConfig;
61
62
const octokit = new Octokit({ auth });
0 commit comments