Permalink
Browse files

merge script: use pull request author as commit author

Author: @franklinhu
Fixes #180
URL: #180
  • Loading branch information...
1 parent fc4e60a commit 32be550c285f189d4d85a4829a4dfe58f32baa7a @franklinhu franklinhu committed with Franklin Hu Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/git-pull-request.rb
View
@@ -204,7 +204,7 @@ def merge(number)
commit_msg = merge_commit_msg(pull_request, issue)
# Use the correct author
- user_login = head['user']['login']
+ user_login = pull_request['user']['login']
user_obj = Github.get("users/#{user_login}")
user_name = user_obj['name']
user_email = user_obj['email']

0 comments on commit 32be550

Please sign in to comment.