diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-01-25 11:12:14 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-01-25 11:12:14 +0000 |
commit | 1db2f22b15c08c96f02796bb64715d184793ffa3 (patch) | |
tree | 590a191fdfd39fba817a3721505bb07b0696aab1 /lib | |
parent | d2bf53942fdb7368c914482ebdfdf1dc1a145cce (diff) | |
download | gitlab-ce-1db2f22b15c08c96f02796bb64715d184793ffa3.tar.gz |
Revert "Merge branch 'osw-updates-merge-status-on-api-actions' into 'master'"
This reverts merge request !16626
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 5b470bd3479..7b9a80a234b 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -507,16 +507,7 @@ module API expose :work_in_progress?, as: :work_in_progress expose :milestone, using: Entities::Milestone expose :merge_when_pipeline_succeeds - - # Ideally we should deprecate `MergeRequest#merge_status` exposure and - # use `MergeRequest#mergeable?` instead (boolean). - # See https://gitlab.com/gitlab-org/gitlab-ce/issues/42344 for more - # information. - expose :merge_status do |merge_request| - # In order to avoid having a breaking change for users, we keep returning the - # expected values from MergeRequest#merge_status state machine. - merge_request.mergeable? ? 'can_be_merged' : 'cannot_be_merged' - end + expose :merge_status expose :diff_head_sha, as: :sha expose :merge_commit_sha expose :user_notes_count |