mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Added casper changelog option to release draft
no issue - Added option to allow appending casper changelog to main release draft - Uses capser changelog path and new version info to append casper changes
This commit is contained in:
parent
dba3b43708
commit
d0bde8c9bc
@ -49,6 +49,15 @@ module.exports.create = (options = {}) => {
|
||||
|
||||
body = body.concat(changelog);
|
||||
|
||||
// @NOTE: Add casper changelog if present
|
||||
if (options.hasOwnProperty('casper') && _.isObject(options.casper) && options.casper.changelogPath) {
|
||||
let casperChangelog = fs.readFileSync(options.casper.changelogPath).toString('utf8').split(os.EOL);
|
||||
casperChangelog = localUtils.filterEmojiCommits(casperChangelog);
|
||||
body.push('');
|
||||
body.push(`Casper (the default theme) has been upgraded to ${options.casper.version}:`);
|
||||
body = body.concat(casperChangelog);
|
||||
}
|
||||
|
||||
// CASE: clean before upload
|
||||
body = body.filter((item) => {
|
||||
return item !== undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user