Skip to content

Commit 7ee7d4b

Browse files
author
dessant
committed
fix: limit daysUntilLock to 10 years
1 parent 5b94ab5 commit 7ee7d4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const Joi = require('joi');
33
const fields = {
44
daysUntilLock: Joi.number()
55
.min(1)
6+
.max(3650)
67
.description(
78
'Number of days of inactivity before a closed issue or pull request is locked'
89
),
@@ -11,7 +12,7 @@ const fields = {
1112
.try(Joi.string(), Joi.boolean().only(false))
1213
.description(
1314
'Skip issues and pull requests created before a given timestamp. Timestamp ' +
14-
'must follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable'
15+
'must follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable'
1516
),
1617

1718
exemptLabels: Joi.array()

0 commit comments

Comments
 (0)