summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-07-11 11:25:01 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2016-07-11 14:08:06 -0400
commiteac19b289384a6281c75781e79bad21408063c1c (patch)
tree00d4a1a41aba1b6b958eb0f80e79919113f3e9bc /lib/api/entities.rb
parent3239c5f666fb93cbd66cf9b1d02b8a9d6e8b0d51 (diff)
downloadgitlab-ce-eac19b289384a6281c75781e79bad21408063c1c.tar.gz
api: expose {should,force}_remove_source_branch
Workflows which use a bot to merge should remove branches if requested. Expose the flag so that bots can request know this.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 9076a0c3831..d8e987ee8d4 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -208,6 +208,8 @@ module API
merge_request.subscribed?(options[:current_user])
end
expose :user_notes_count
+ expose :should_remove_source_branch?, as: :should_remove_source_branch
+ expose :force_remove_source_branch?, as: :force_remove_source_branch
end
class MergeRequestChanges < MergeRequest