summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/pull_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/representation/pull_request.rb')
-rw-r--r--lib/bitbucket/representation/pull_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitbucket/representation/pull_request.rb b/lib/bitbucket/representation/pull_request.rb
index e7b1f99e9a6..96992003d24 100644
--- a/lib/bitbucket/representation/pull_request.rb
+++ b/lib/bitbucket/representation/pull_request.rb
@@ -2,7 +2,7 @@ module Bitbucket
module Representation
class PullRequest < Representation::Base
def author
- raw.fetch('author', {}).fetch('username', 'Anonymous')
+ user_representation(raw.fetch('author', {}))
end
def description