Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinmombay committed Nov 19, 2015
2 parents 3ee1f5b + 2099650 commit 42787e9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build-system/tasks/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,15 @@ function onGitTagSuccess(gitMetadata, tag) {

function onGitLogSuccess(gitMetadata, logs) {
var commits = logs.split('\n');
return commits.map(function(commit) {
return commit.split(' ')[3].slice(1);
});
return commits
.filter(function(commit) {
// filter non Pull request merges
return commit.indexOf('Merge pull') == 0;
})
.map(function(commit) {
// We only need the PR id
return commit.split(' ')[3].slice(1);
});
}

function errHandler(err) {
Expand Down

0 comments on commit 42787e9

Please sign in to comment.