From 9bfa5e85cbff5f78da3f31668c0b0dc96aa56169 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Sat, 30 Nov 2024 12:25:35 +0900 Subject: [PATCH] chore: reformat plugin-input.ts --- src/types/plugin-input.ts | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/types/plugin-input.ts b/src/types/plugin-input.ts index 1a9c513..1fdc487 100644 --- a/src/types/plugin-input.ts +++ b/src/types/plugin-input.ts @@ -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: {} } ); @@ -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: {} } @@ -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: {} } @@ -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({