Skip to content

Commit aedcfc0

Browse files
committed
github token
1 parent 3681a05 commit aedcfc0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

http-backend/src/router/project.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Router } from "express";
22
import { z } from "zod"
33
import {prismaClient} from "../db/index"
4-
import { indexGithubRepo } from "../utils/github/github-loader";
54
import { pollCommits } from "../utils/github/commit";
65
import { pollPullRequests } from "../utils/github/pull-req";
76
import { createMemory } from "../utils/langbase/memory";

http-backend/src/utils/github/github-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { uploadMemoryDocument } from "../langbase/memory"
44

55
export const loadGithubRepo = async (githubUrl: string, githubToken?: string) => {
66
const loader = new GithubRepoLoader(githubUrl, {
7-
accessToken: githubToken || '',
7+
accessToken: githubToken || process.env.GITHUB_TOKEN,
88
branch: 'main',
99
ignoreFiles: ['package-lock.json',
1010
'yarn.lock',

0 commit comments

Comments
 (0)