From e639593c5d5cc0ab503e4c436615ea1ff10835f2 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Thu, 18 Apr 2019 05:50:14 -0700 Subject: [PATCH] fix: default commitConvention to 'none' (#179) --- src/util/config-file.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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}`)