Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): add descriptions to JSON schema properties #49

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
"properties": {
"matchThreshold": {
"default": 0.95,
"description": "The minimum similarity score when considering existing issues to be duplicates.",
"type": "number"
},
"warningThreshold": {
"default": 0.75,
"description": "",
"type": "number"
},
"jobMatchingThreshold": {
"default": 0.75,
"description": "The minimum similarity score when considering users to be suitable for a job.",
"type": "number"
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { StaticDecode, Type as T } from "@sinclair/typebox";
*/
export const pluginSettingsSchema = T.Object(
{
matchThreshold: T.Number({ default: 0.95 }),
warningThreshold: T.Number({ default: 0.75 }),
jobMatchingThreshold: T.Number({ default: 0.75 }),
matchThreshold: T.Number({ default: 0.95, description: "The minimum similarity score when considering existing issues to be duplicates." }),
warningThreshold: T.Number({ default: 0.75, description: "" }),
jobMatchingThreshold: T.Number({ default: 0.75, description: "The minimum similarity score when considering users to be suitable for a job." }),
},
{ default: {} }
);
Expand Down