Skip to content

Commit

Permalink
fix: graphql lint and bun.lockdb del
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Jan 10, 2025
1 parent d80b712 commit 609db1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Binary file removed bun.lockb
Binary file not shown.
9 changes: 4 additions & 5 deletions functions/issue-scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function markdownToPlainText(markdown: string | null): string | null {
return md.plainText;
}

const SEARCH_ISSUES_QUERY = `
const SEARCH_ISSUES_QUERY = /* GraphQL */`
query SearchIssues($searchText: String!, $after: String) {
search(
query: $searchText,
Expand Down Expand Up @@ -270,7 +270,7 @@ async function issueScraper(username: string, supabase: SupabaseClient, voyageAp
throw new Error("Username is required");
}

let storageFailed = []
const storageFailed = [];

const octokit = new Octokit(token ? { auth: token } : {});
const voyageClient = new VoyageAIClient({ apiKey: voyageApiKey });
Expand All @@ -287,11 +287,10 @@ async function issueScraper(username: string, supabase: SupabaseClient, voyageAp
storageFailed.push({
id: issue.id,
reason: "Issue does not have a title",
})
});
return false;
}
})

});

const markdowns = issues.map((issue) => {
return `${issue.body || ""} ${issue.title}`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@octokit/request-error": "^6.1.0",
"@octokit/rest": "^20.0.2",
"@supabase/supabase-js": "^2.39.0",
"@types/markdown-it": "^14.1.2",
"dotenv": "^16.3.1",
"esbuild-plugin-env": "^1.0.8",
"markdown-it": "^14.1.0",
Expand All @@ -48,6 +47,7 @@
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@types/markdown-it": "^14.1.2",
"@commitlint/config-conventional": "^18.4.3",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
Expand Down

0 comments on commit 609db1f

Please sign in to comment.