diff --git a/src/util/config-file.js b/src/util/config-file.js index 661b5d0..dd68db8 100644 --- a/src/util/config-file.js +++ b/src/util/config-file.js @@ -8,10 +8,17 @@ function readConfig(configPath) { if (!('repoType' in config)) { config.repoType = 'github' } + if (!('commitConvention' in config)) { + config.commitConvention = 'none' + } return config } catch (error) { if (error instanceof SyntaxError) { - throw new SyntaxError(`Configuration file has malformed JSON: ${configPath}. Error:: ${error.message}`) + throw new SyntaxError( + `Configuration file has malformed JSON: ${configPath}. Error:: ${ + error.message + }`, + ) } if (error.code === 'ENOENT') { throw new Error(`Configuration file not found: ${configPath}`)