summaryrefslogtreecommitdiff
path: root/lib/bitbucket_server/representation/pull_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket_server/representation/pull_request.rb')
-rw-r--r--lib/bitbucket_server/representation/pull_request.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bitbucket_server/representation/pull_request.rb b/lib/bitbucket_server/representation/pull_request.rb
index 7c03e9a401a..96a27564641 100644
--- a/lib/bitbucket_server/representation/pull_request.rb
+++ b/lib/bitbucket_server/representation/pull_request.rb
@@ -5,6 +5,10 @@ module BitbucketServer
raw.fetch('author', {}).fetch('user', {}).fetch('name')
end
+ def author_email
+ raw.fetch('author', {}).fetch('user', {}).fetch('emailAddress')
+ end
+
def description
raw['description']
end