diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-27 14:25:09 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-27 14:25:09 -0700 |
commit | 5728ffbf12c8f5f767bc6d6b9a453b2add974e96 (patch) | |
tree | 5ce0a223a0fa5c3213107f7864d499b104390673 /lib/bitbucket_server/representation/pull_request.rb | |
parent | 4a6ed4792f107f2180e85001c9e0ebe653e42b14 (diff) | |
download | gitlab-ce-5728ffbf12c8f5f767bc6d6b9a453b2add974e96.tar.gz |
Import standalone pull request comments
Diffstat (limited to 'lib/bitbucket_server/representation/pull_request.rb')
-rw-r--r-- | lib/bitbucket_server/representation/pull_request.rb | 4 |
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 |