diff --git a/bin/git-pull-request.rb b/bin/git-pull-request.rb index e7b73c0b803..10502a5e99f 100755 --- a/bin/git-pull-request.rb +++ b/bin/git-pull-request.rb @@ -205,8 +205,6 @@ def merge(number) puts "Pushing to origin" Git.run("push origin master") - close_pull_request(number) - puts "Deleting local and remote branches" Git.run("push origin :#{head['ref']}") Git.run("branch -D #{head['ref']}") @@ -236,7 +234,7 @@ def close_pull_request(number) def merge_commit_msg(pull_request, issue) output = "#{pull_request['title']}\n\n" output += "#{word_wrap(pull_request['body'])}\n\n" if pull_request['body'] && !pull_request['body'].empty? - output += "Author: @#{issue['user']['login']}\nPull Request: \##{pull_request['number']}\nURL: #{pull_request['html_url']}" + output += "Author: @#{issue['user']['login']}\nFixes \##{pull_request['number']}\nURL: #{pull_request['html_url']}" end def word_wrap(str, len = 80)