Skip to content

Commit 93d20cc

Browse files
committed
Add config validation for backend.squash_merges option.
1 parent db27590 commit 93d20cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/actions/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export function validateConfig(config) {
5050
if (typeof config.getIn(['backend', 'name']) !== 'string') {
5151
throw new Error("Error in configuration file: Your `backend.name` must be a string. Check your config.yml file.");
5252
}
53+
if (!isBoolean(config.getIn(['backend', 'squash_merges'], false))) {
54+
throw new Error("Error in configuration file: Your `backend.squash_merges` must be a boolean. Check your config.yml file.");
55+
}
5356
if (!config.get('media_folder')) {
5457
throw new Error("Error in configuration file: A `media_folder` wasn\'t found. Check your config.yml file.");
5558
}

0 commit comments

Comments
 (0)