Skip to content

Commit

Permalink
initial release.
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Sep 9, 2021
1 parent 618777c commit 230cab7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .releaser.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"scheme": "semver"
},
"npm": {
"enable": true,
"enable": false,
"updatePkgJson": true
}
}
3 changes: 2 additions & 1 deletion src/application/createReleaseByLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = async function createReleaseByLevel(level, ctx) {
console.log(colors.blue(`Releasing new version ${nextTag}`))

git.push(nextTag, messages)
git.getChangelogForTag(nextTag)
const changelog = git.getChangelogForTag(nextTag)
console.log('changelog:', changelog)

plugins.call('afterPush', config, nextTag)

Expand Down
4 changes: 4 additions & 0 deletions src/modules/git/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function getChangelogForTag(tag) {
return []
}

console.log('hashes:', hashes)

// get commit messages including multiline
const revrange = [hashes[hashes.length-1], hashes[0]]
const output2 = execSync(`git log ${revrange[0]}..${revrange[1]} --format="%H %s%n%b"`)
Expand All @@ -78,6 +80,8 @@ function getChangelogForTag(tag) {
return memo
}, {})

console.log('msgsByCommit:', msgsByCommit)

return hashes.reduce(function(memo, hash) {
msgsByCommit[hash].map(msg => memo.push(msg))
return memo
Expand Down

0 comments on commit 230cab7

Please sign in to comment.