Skip to content

Commit

Permalink
fix: use camel casing for property name
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Sep 17, 2024
1 parent bbb22e6 commit 2da6b86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export class ContentEvaluatorModule implements Module {

async _processComment(comments: Readonly<GithubCommentScore>[], specificationBody: string) {
const commentsWithScore: GithubCommentScore[] = [...comments];
const { commentsToEvaluate, PrCommentsToEvaluate: prCommentsToEvaluate } =
this._splitCommentsByPrompt(commentsWithScore);
const { commentsToEvaluate, prCommentsToEvaluate } = this._splitCommentsByPrompt(commentsWithScore);

const relevancesByAI = await this._evaluateComments(specificationBody, commentsToEvaluate, prCommentsToEvaluate);

Expand Down Expand Up @@ -128,7 +127,7 @@ export class ContentEvaluatorModule implements Module {

_splitCommentsByPrompt(commentsWithScore: Readonly<GithubCommentScore>[]): {
commentsToEvaluate: CommentToEvaluate[];
PrCommentsToEvaluate: PrCommentToEvaluate[];
prCommentsToEvaluate: PrCommentToEvaluate[];
} {
const commentsToEvaluate: CommentToEvaluate[] = [];
const prCommentsToEvaluate: PrCommentToEvaluate[] = [];
Expand All @@ -149,7 +148,7 @@ export class ContentEvaluatorModule implements Module {
}
}
}
return { commentsToEvaluate, PrCommentsToEvaluate: prCommentsToEvaluate };
return { commentsToEvaluate, prCommentsToEvaluate };
}

async _evaluateComments(
Expand Down

0 comments on commit 2da6b86

Please sign in to comment.