Skip to content

Commit

Permalink
fix: similarity in percents
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Sep 14, 2024
1 parent 4d6491a commit 33a5f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/issue-deduplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IssueGraphqlResponse {
title: string;
url: string;
};
similarity: number;
similarity: string;
}

/**
Expand Down Expand Up @@ -62,7 +62,7 @@ export async function issueChecker(context: Context): Promise<boolean> {
issueNodeId: issue.issue_id,
}
);
issueUrl.similarity = issue.similarity;
issueUrl.similarity = (issue.similarity * 100).toFixed(2);
return issueUrl;
})
);
Expand Down

0 comments on commit 33a5f93

Please sign in to comment.