Skip to content

Commit

Permalink
fix: issueCheck string
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Nov 30, 2024
1 parent 43aef0f commit 340543e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/issue-deduplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 340543e

Please sign in to comment.