Skip to content

Commit

Permalink
Update bin/changelog with customizations for Ember Data
Browse files Browse the repository at this point in the history
  • Loading branch information
bmac committed Jul 27, 2015
1 parent 1ab6d9b commit 466d4b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function getCommitMessage(commitInfo) {
var message = commitInfo.commit.message;

if (message.indexOf('cherry picked from commit') > -1) {
var originalCommit = message.split('cherry picked from commit ').slice(-1); // find the last instance of `cherry picked from`
originalCommit = originalCommit[0].slice(0, -1); // remove the trailing `)`
var cherryPickRegex = /cherry picked from commit ([a-z0-9]+)/;
var originalCommit = cherryPickRegex.exec(message)[1]

try {
// command from http://stackoverflow.com/questions/8475448/find-merge-commit-which-include-a-specific-commit
Expand Down Expand Up @@ -78,9 +78,9 @@ function processPages(res) {
var title = pr.title;
var link;
if (pr.number) {
link = '[#' + pr.number + ']' + '(https://github.com/emberjs/ember.js/pull/' + pr.number + ')';
link = '[#' + pr.number + ']' + '(https://github.com/emberjs/data/pull/' + pr.number + ')';
} else {
link = '[' + pr.sha.slice(0, 8) + '](https://github.com/emberjs/ember.js/commit/' + pr.sha + ')';
link = '[' + pr.sha.slice(0, 8) + '](https://github.com/emberjs/data/commit/' + pr.sha + ')';
}

return '- ' + link + ' ' + title;
Expand Down

0 comments on commit 466d4b4

Please sign in to comment.