From eac19b289384a6281c75781e79bad21408063c1c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 11 Jul 2016 11:25:01 -0400 Subject: 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. --- lib/api/entities.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/api/entities.rb') 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 -- cgit v1.2.1