Skip to content

Commit

Permalink
fix: default commitConvention to 'none' (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and Berkmann18 committed Apr 18, 2019
1 parent 2376ada commit e639593
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/util/config-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit e639593

Please sign in to comment.