-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adds support for
releaseCommitMessageFormat
(#351)
- Loading branch information
1 parent
73b35f8
commit a7133cc
Showing
8 changed files
with
83 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const spec = require('conventional-changelog-config-spec') | ||
|
||
const defaults = { | ||
infile: 'CHANGELOG.md', | ||
firstRelease: false, | ||
sign: false, | ||
noVerify: false, | ||
commitAll: false, | ||
silent: false, | ||
tagPrefix: 'v', | ||
scripts: {}, | ||
skip: {}, | ||
dryRun: false, | ||
gitTagFallback: true, | ||
preset: 'conventionalcommits' | ||
} | ||
|
||
/** | ||
* Merge in defaults provided by the spec | ||
*/ | ||
Object.keys(spec.properties).forEach(propertyKey => { | ||
const property = spec.properties[propertyKey] | ||
defaults[propertyKey] = property.default | ||
}) | ||
|
||
module.exports = defaults |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
const util = require('util') | ||
|
||
module.exports = function (rawMsg, newVersion) { | ||
const message = String(rawMsg) | ||
const matchCount = (message.match(/%s/g) || []).length | ||
const args = Array(1 + matchCount) | ||
args[0] = message | ||
args.fill(newVersion, 1, args.length) | ||
return util.format.apply(util, args) | ||
return message.replace(/{{currentTag}}/g, newVersion) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters