From 340543ec0c99b54cff1e29a0ed3e15609b5254d9 Mon Sep 17 00:00:00 2001 From: Shivaditya Shivganesh Date: Sat, 30 Nov 2024 17:17:37 -0500 Subject: [PATCH] fix: issueCheck string --- src/handlers/issue-deduplication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/issue-deduplication.ts b/src/handlers/issue-deduplication.ts index 534547d..6a67a30 100644 --- a/src/handlers/issue-deduplication.ts +++ b/src/handlers/issue-deduplication.ts @@ -47,7 +47,7 @@ export async function issueChecker(context: Context<"issues.opened" | "issues.ed processedIssues = processedIssues.filter((issue) => matchRepoOrgToSimilarIssueRepoOrg(payload.repository.owner.login, issue.node.repository.owner.login, payload.repository.name, issue.node.repository.name) ); - const matchIssues = processedIssues.filter((issue) => parseFloat(issue.similarity) >= context.config.matchThreshold); + const matchIssues = processedIssues.filter((issue) => parseFloat(issue.similarity) / 100 >= context.config.matchThreshold); if (matchIssues.length > 0) { logger.info(`Similar issue which matches more than ${context.config.matchThreshold} already exists`, { matchIssues }); //To the issue body, add a footnote with the link to the similar issue