Skip to content

Commit

Permalink
Make Github commit author linkable
Browse files Browse the repository at this point in the history
Author: @franklinhu
Pull Request: #26
URL: #26
  • Loading branch information
Franklin Hu committed Jun 14, 2012
1 parent 8dad6f2 commit a168cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-pull-request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,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']}\nPull Request: \##{pull_request['number']}\nURL: #{pull_request['html_url']}"
end

def word_wrap(str, len = 80)
Expand Down

0 comments on commit a168cba

Please sign in to comment.