Skip to content

Commit

Permalink
fix: apply stricter config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jan 20, 2019
1 parent b5ca663 commit 06ccf1e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,32 @@ const Joi = require('joi');
const schema = Joi.object().keys({
openIssueColumns: Joi.array()
.single()
.items(Joi.string())
.items(
Joi.string()
.trim()
.max(140)
)
.default([])
.description(
'Open issues that are moved to these project columns. Set to `[]` to disable'
),

closedIssueColumns: Joi.array()
.single()
.items(Joi.string())
.items(
Joi.string()
.trim()
.max(140)
)
.default(['Closed', 'Done'])
.description(
'Close issues that are moved to these project columns. Set to `[]` to disable'
),

_extends: Joi.string().description('Repository to extend settings from'),
_extends: Joi.string()
.trim()
.max(260)
.description('Repository to extend settings from'),

perform: Joi.boolean().default(!process.env.DRY_RUN)
});
Expand Down

0 comments on commit 06ccf1e

Please sign in to comment.