Skip to content

Commit

Permalink
fix: add missing config key to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jun 26, 2018
1 parent 5071a99 commit 83e345c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module.exports = async robot => {
try {
let repoConfig = await getMergedConfig(context, file);
if (!repoConfig) {
log.info({repo, file}, 'Missing config');
repoConfig = {perform: false};
}
const {error, value} = schema.validate(repoConfig);
Expand Down
1 change: 1 addition & 0 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const schema = Joi.object().keys({
.description('Limit to only `issues` or `pulls`'),
pulls: Joi.object().keys(fields),
issues: Joi.object().keys(fields),
_extends: Joi.string().description('Repository to extend settings from'),
perform: Joi.boolean().default(!process.env.DRY_RUN)
});

Expand Down

0 comments on commit 83e345c

Please sign in to comment.