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

ci: fix prettier #58

Merged
merged 1 commit into from
Dec 4, 2024
Merged
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
18 changes: 10 additions & 8 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const pluginSettingsSchema = T.Object(
warning: thresholdType({
default: "3.5 days",
description: "Delay to send reminders. 0 means disabled and any other value is counted in days, e.g. 1,5 days",
examples: ["3.5 days", "1 day"]
examples: ["3.5 days", "1 day"],
}),
/**
* By default, all repositories are watched. Use this option to opt-out from watching specific repositories
Expand All @@ -67,7 +67,7 @@ export const pluginSettingsSchema = T.Object(
optOut: T.Array(T.String(), {
default: [],
description: "List of repositories to opt-out from watching user activity within the organization",
examples: ["repoName", "no-owner-required"]
examples: ["repoName", "no-owner-required"],
}),
},
{ default: {} }
Expand All @@ -82,7 +82,7 @@ export const pluginSettingsSchema = T.Object(
disqualification: thresholdType({
default: "7 days",
description: "Delay to unassign users. 0 means disabled and any other value is counted in days, e.g. 7 days",
examples: ["7 days", "1 day"]
examples: ["7 days", "1 day"],
}),
/**
* Whether a pull request is required for the given issue on disqualify.
Expand All @@ -91,11 +91,13 @@ export const pluginSettingsSchema = T.Object(
/**
* List of events to consider as valid activity on a task
*/
eventWhitelist: T.Transform(T.Array(T.String(), {
default: eventWhitelist,
description: "List of webhook event names to consider as valid activity on a task",
examples: ["pull_request.review_requested", "issue_comment.created", "push"]
}))
eventWhitelist: T.Transform(
T.Array(T.String(), {
default: eventWhitelist,
description: "List of webhook event names to consider as valid activity on a task",
examples: ["pull_request.review_requested", "issue_comment.created", "push"],
})
)
.Decode((value) => {
const validEvents = Object.values(eventWhitelist);
const eventsStripped: TimelineEvent[] = [];
Expand Down
Loading