From 2da6b868c9700b68e5bbedfb64683e42b384755c Mon Sep 17 00:00:00 2001 From: EresDev Date: Tue, 17 Sep 2024 15:24:01 +0500 Subject: [PATCH] fix: use camel casing for property name --- src/parser/content-evaluator-module.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/parser/content-evaluator-module.ts b/src/parser/content-evaluator-module.ts index 3d7f0b17..05e815c1 100644 --- a/src/parser/content-evaluator-module.ts +++ b/src/parser/content-evaluator-module.ts @@ -81,8 +81,7 @@ export class ContentEvaluatorModule implements Module { async _processComment(comments: Readonly[], 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); @@ -128,7 +127,7 @@ export class ContentEvaluatorModule implements Module { _splitCommentsByPrompt(commentsWithScore: Readonly[]): { commentsToEvaluate: CommentToEvaluate[]; - PrCommentsToEvaluate: PrCommentToEvaluate[]; + prCommentsToEvaluate: PrCommentToEvaluate[]; } { const commentsToEvaluate: CommentToEvaluate[] = []; const prCommentsToEvaluate: PrCommentToEvaluate[] = []; @@ -149,7 +148,7 @@ export class ContentEvaluatorModule implements Module { } } } - return { commentsToEvaluate, PrCommentsToEvaluate: prCommentsToEvaluate }; + return { commentsToEvaluate, prCommentsToEvaluate }; } async _evaluateComments(