Skip to content

Commit

Permalink
fix: limit daysUntilLock to 10 years
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jan 19, 2019
1 parent 5b94ab5 commit 7ee7d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
),
Expand All @@ -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()
Expand Down

0 comments on commit 7ee7d4b

Please sign in to comment.