Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/representation/pull_request.rb')
-rw-r--r--lib/bitbucket/representation/pull_request.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bitbucket/representation/pull_request.rb b/lib/bitbucket/representation/pull_request.rb
index 6451b8f5d1f..ab8f5ba17fe 100644
--- a/lib/bitbucket/representation/pull_request.rb
+++ b/lib/bitbucket/representation/pull_request.rb
@@ -58,6 +58,10 @@ module Bitbucket
raw['reviewers']&.pluck('username')
end
+ def merge_commit_sha
+ raw['merge_commit']&.dig('hash')
+ end
+
def to_hash
{
iid: iid,
@@ -76,10 +80,6 @@ module Bitbucket
}
end
- def merge_commit_sha
- raw['merge_commit']&.dig('hash')
- end
-
private
def source_branch