-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ubiquity-os-marketplace#55 from EresDevOrg/develop…
…ment PR: correct discrepancies with the old bot
- Loading branch information
Showing
29 changed files
with
1,412 additions
and
850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
output.html | ||
tests/__mocks__/results/output-reward-split.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,40 @@ | ||
import { Static, Type } from "@sinclair/typebox"; | ||
import { commentType } from "./formatting-evaluator-config"; | ||
|
||
export const contentEvaluatorConfigurationType = Type.Object({}); | ||
export const contentEvaluatorConfigurationType = Type.Object({ | ||
/** | ||
* Multipliers applied to different types of comments | ||
*/ | ||
multipliers: Type.Array( | ||
Type.Object({ | ||
select: Type.Array(commentType), | ||
relevance: Type.Optional(Type.Number()), | ||
}), | ||
{ | ||
default: [ | ||
{ | ||
select: ["ISSUE_SPECIFICATION"], | ||
relevance: 1, | ||
}, | ||
{ | ||
select: ["PULL_AUTHOR"], | ||
relevance: 1, | ||
}, | ||
{ | ||
select: ["PULL_ASSIGNEE"], | ||
relevance: 1, | ||
}, | ||
{ | ||
select: ["PULL_COLLABORATOR"], | ||
relevance: 1, | ||
}, | ||
{ | ||
select: ["PULL_CONTRIBUTOR"], | ||
relevance: 1, | ||
}, | ||
], | ||
} | ||
), | ||
}); | ||
|
||
export type ContentEvaluatorConfiguration = Static<typeof contentEvaluatorConfigurationType>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.