fix: limit daysUntilLock to 10 years

This commit is contained in:
dessant
2019-01-19 07:43:39 +02:00
parent 5b94ab56b1
commit 7ee7d4bafb

View File

@@ -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()