File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 11import { Router } from "express" ;
22import { z } from "zod"
33import { prismaClient } from "../db/index"
4- import { indexGithubRepo } from "../utils/github/github-loader" ;
54import { pollCommits } from "../utils/github/commit" ;
65import { pollPullRequests } from "../utils/github/pull-req" ;
76import { createMemory } from "../utils/langbase/memory" ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { uploadMemoryDocument } from "../langbase/memory"
44
55export 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' ,
You can’t perform that action at this time.
0 commit comments