Skip to content

Commit

Permalink
[fix]: Avoid the double deleting if the first message is a merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa committed Nov 12, 2015
1 parent 70f2c49 commit 76ade38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github-release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ function commitMessages(commits) {
* @param {[string]} commitMessages The commit messages to create the release body
*/
function prepareRelease(tags, commitMessages) {
commitMessages.pop();

var body = commitMessages.filter(function (message) {
return !message.match('Merge');
}).map(createBody);

body.pop();

var releaseOptions = {
tag_name: tags[0].name,
name: releasePrefix + tags[0].name,
Expand All @@ -109,7 +109,7 @@ function prepareRelease(tags, commitMessages) {
* @param {string} since The since date in ISO
* @param {string} until The until date in ISO
*
* @return {Promise} The promise which resolves the commit messages
* @return {Promise} The promise which resolves the [Array] commit messages
*/
function getCommitsBetweenTwo(since, until) {
var options = {
Expand Down

0 comments on commit 76ade38

Please sign in to comment.