diff --git a/rhodecode/model/pull_request.py b/rhodecode/model/pull_request.py --- a/rhodecode/model/pull_request.py +++ b/rhodecode/model/pull_request.py @@ -167,6 +167,8 @@ def get_diff_info( author=commit.author, date=commit.date, message=commit.message, + commit_id=commit.raw_id, + raw_id=commit.raw_id ) commits.append(serialized_commit) user = User.get_from_cs_author(serialized_commit['author']) diff --git a/rhodecode/templates/pullrequests/pullrequest.mako b/rhodecode/templates/pullrequests/pullrequest.mako --- a/rhodecode/templates/pullrequests/pullrequest.mako +++ b/rhodecode/templates/pullrequests/pullrequest.mako @@ -303,7 +303,7 @@ var originalOption = data.element; return prefix + escapeMarkup(data.text); - };formatSelection: + }; // custom code mirror var codeMirrorInstance = $('#pullrequest_desc').get(0).MarkupForm.cm; @@ -362,8 +362,10 @@ var msg = ''.format(commonAncestorId); msg += '' + $.each(commitElements, function(idx, value) { - msg += ''.format(value["raw_id"]); + var commit_id = value["commit_id"] + msg += ''.format(commit_id); }); msg += ''