From 7ee7d4bafbb676ca4c74ba565aa6c5bd74cb426d Mon Sep 17 00:00:00 2001 From: dessant Date: Sat, 19 Jan 2019 07:43:39 +0200 Subject: [PATCH] fix: limit daysUntilLock to 10 years --- src/schema.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/schema.js b/src/schema.js index c0d6f17..482b649 100644 --- a/src/schema.js +++ b/src/schema.js @@ -3,6 +3,7 @@ const Joi = require('joi'); const fields = { daysUntilLock: Joi.number() .min(1) + .max(3650) .description( 'Number of days of inactivity before a closed issue or pull request is locked' ), @@ -11,7 +12,7 @@ const fields = { .try(Joi.string(), Joi.boolean().only(false)) .description( 'Skip issues and pull requests created before a given timestamp. Timestamp ' + - 'must follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable' + 'must follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable' ), exemptLabels: Joi.array()