diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-25 22:32:10 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-25 22:32:10 -0700 |
commit | e52f6bf5f9c30f7bdd7d05c1d692746bf9428a3d (patch) | |
tree | 2e036cb6a55fd18e20d90611170d0b37a80a132b /lib/bitbucket_server | |
parent | 0612b07037c0b4f13466e900c8b61e80d4e2f6fe (diff) | |
download | gitlab-ce-e52f6bf5f9c30f7bdd7d05c1d692746bf9428a3d.tar.gz |
Fix failing spec
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r-- | lib/bitbucket_server/representation/pull_request.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bitbucket_server/representation/pull_request.rb b/lib/bitbucket_server/representation/pull_request.rb index a39753fa7c8..43f61683ddd 100644 --- a/lib/bitbucket_server/representation/pull_request.rb +++ b/lib/bitbucket_server/representation/pull_request.rb @@ -46,19 +46,19 @@ module BitbucketServer end def source_branch_name - dig('fromRef', 'id') + raw.dig('fromRef', 'id') end def source_branch_sha - dig('fromRef', 'latestCommit') + raw.dig('fromRef', 'latestCommit') end def target_branch_name - dig('toRef', 'id') + raw.dig('toRef', 'id') end def target_branch_sha - dig('toRef', 'latestCommit') + raw.dig('toRef', 'latestCommit') end private |