Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bin/changelog with customizations for Ember Data #3593

Merged
merged 1 commit into from
Jul 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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