Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Use Joi to validate configs #176

Merged
merged 9 commits into from
Dec 5, 2018
Merged

Use Joi to validate configs #176

merged 9 commits into from
Dec 5, 2018

Conversation

JasonEtco
Copy link
Owner

@JasonEtco JasonEtco commented Dec 4, 2018

This PR adds a Joi schema to validate the config options that are set by repository. Followup PRs will include autogenerating docs from this, adding more tests to the new main-loop.test.js suite, and notifying users when they've pushed invalid configs; but for now this'll do.

@codecov
Copy link

codecov bot commented Dec 4, 2018

Codecov Report

Merging #176 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #176      +/-   ##
==========================================
+ Coverage   98.63%   98.63%   +<.01%     
==========================================
  Files          23       23              
  Lines         219      220       +1     
  Branches       45       45              
==========================================
+ Hits          216      217       +1     
  Misses          2        2              
  Partials        1        1

@JasonEtco JasonEtco temporarily deployed to probot-todo December 4, 2018 06:11 Inactive
@JasonEtco JasonEtco temporarily deployed to probot-todo December 4, 2018 19:41 Inactive
@JasonEtco JasonEtco temporarily deployed to probot-todo December 4, 2018 19:52 Inactive
@JasonEtco JasonEtco merged commit ab50dd3 into master Dec 5, 2018
@JasonEtco JasonEtco deleted the joi branch December 5, 2018 01:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant