Skip to content

Commit

Permalink
chore: reformat plugin-input.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Nov 30, 2024
1 parent 4298993 commit 9bfa5e8
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/types/plugin-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ export const approvalsRequiredSchema = T.Object(
* The amount of validations needed to consider a pull-request by a collaborator to be deemed eligible for
* merge, defaults to 1.
*/
collaborator: T.Number({ default: 1, minimum: 1, description: "The amount of validations needed to consider a pull-request by a collaborator to be deemed eligible for merge" }),
collaborator: T.Number({
default: 1,
minimum: 1,
description: "The amount of validations needed to consider a pull-request by a collaborator to be deemed eligible for merge",
}),
/**
* The amount of validations needed to consider a pull-request by a contributor to be deemed eligible for merge,
* defaults to 2.
*/
contributor: T.Number({ default: 2, minimum: 1, description: "The amount of validations needed to consider a pull-request by a contributor to be deemed eligible for merge" }),
contributor: T.Number({
default: 2,
minimum: 1,
description: "The amount of validations needed to consider a pull-request by a contributor to be deemed eligible for merge",
}),
},
{ default: {} }
);
Expand All @@ -24,7 +32,7 @@ export const mergeTimeoutSchema = T.Object(
collaborator: T.String({
default: "3.5 days",
description: "The timespan to wait before merging a collaborator's pull-request",
examples: ["1 day", "3.5 days"]
examples: ["1 day", "3.5 days"],
}),
},
{ default: {} }
Expand All @@ -38,15 +46,16 @@ export const reposSchema = T.Object(
monitor: T.Array(T.String({ minLength: 1 }), {
default: [],
description: "Repositories to watch for updates, if empty all are watched and if just owner is provided all repositories from that owner are watched.",
examples: ["owner/repo", "owner"]
examples: ["owner/repo", "owner"],
}),
/**
* Repositories to ignore updates from
*/
ignore: T.Array(T.String(), {
default: [],
description: "Repositories to ignore updates from, if empty all repositories are watched and if just owner is provided all repositories from that owner are ignored",
examples: ["owner/repo", "owner"]
description:
"Repositories to ignore updates from, if empty all repositories are watched and if just owner is provided all repositories from that owner are ignored",
examples: ["owner/repo", "owner"],
}),
},
{ default: {} }
Expand All @@ -55,7 +64,10 @@ export const reposSchema = T.Object(
const allowedReviewerRoles = T.Array(T.String(), {
default: ["COLLABORATOR", "MEMBER", "OWNER"],
description: "When considering a user for a task: which roles should be considered as having review authority? All others are ignored.",
examples: [["COLLABORATOR", "MEMBER", "OWNER"], ["MEMBER", "OWNER"]]
examples: [
["COLLABORATOR", "MEMBER", "OWNER"],
["MEMBER", "OWNER"],
],
});

export const pluginSettingsSchema = T.Object({
Expand Down

0 comments on commit 9bfa5e8

Please sign in to comment.