Skip to content

Commit

Permalink
chore: fixed spells
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Jul 23, 2024
1 parent 4d574b8 commit 9f8815e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ContentEvaluatorModule implements Module {
async _processComment(comments: Readonly<GithubCommentScore>[], specificationBody: string) {
const commentsWithScore: GithubCommentScore[] = [...comments];

// exclude comments that have fixed relevane. e.g. review comments = 1
// exclude comments that have fixed relevance. e.g. review comments = 1
const commentsToEvaluate: { id: number; comment: string }[] = [];
for (let i = 0; i < commentsWithScore.length; i++) {
const currentComment = commentsWithScore[i];
Expand All @@ -70,7 +70,7 @@ export class ContentEvaluatorModule implements Module {

for (let i = 0; i < commentsWithScore.length; i++) {
const currentComment = commentsWithScore[i];
let currentRelevance = 1; // For comments not is fixed types and missed by OpenAI evalutaion
let currentRelevance = 1; // For comments not in fixed relevance types or missed by OpenAI evaluation
if (currentComment.type & CommentType.SPECIFICATION) {
currentRelevance = 1;
} else if (currentComment.type & CommentType.REVIEW) {
Expand Down

0 comments on commit 9f8815e

Please sign in to comment.