Skip to content

Commit 76ade38

Browse files
committed
[fix]: Avoid the double deleting if the first message is a merge
1 parent 70f2c49 commit 76ade38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github-release-notes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ function commitMessages(commits) {
8585
* @param {[string]} commitMessages The commit messages to create the release body
8686
*/
8787
function prepareRelease(tags, commitMessages) {
88+
commitMessages.pop();
89+
8890
var body = commitMessages.filter(function (message) {
8991
return !message.match('Merge');
9092
}).map(createBody);
9193

92-
body.pop();
93-
9494
var releaseOptions = {
9595
tag_name: tags[0].name,
9696
name: releasePrefix + tags[0].name,
@@ -109,7 +109,7 @@ function prepareRelease(tags, commitMessages) {
109109
* @param {string} since The since date in ISO
110110
* @param {string} until The until date in ISO
111111
*
112-
* @return {Promise} The promise which resolves the commit messages
112+
* @return {Promise} The promise which resolves the [Array] commit messages
113113
*/
114114
function getCommitsBetweenTwo(since, until) {
115115
var options = {

0 commit comments

Comments
 (0)