diff options
Diffstat (limited to 'app/services/merge_requests/build_service.rb')
-rw-r--r-- | app/services/merge_requests/build_service.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/app/services/merge_requests/build_service.rb b/app/services/merge_requests/build_service.rb index b9a681f29db..3a7b577d59a 100644 --- a/app/services/merge_requests/build_service.rb +++ b/app/services/merge_requests/build_service.rb @@ -16,6 +16,8 @@ module MergeRequests merge_request.source_project = find_source_project merge_request.target_project = find_target_project + initialize_callbacks!(merge_request) + process_params merge_request.compare_commits = [] @@ -40,17 +42,17 @@ module MergeRequests attr_accessor :merge_request delegate :target_branch, - :target_branch_ref, - :target_project, - :source_branch, - :source_branch_ref, - :source_project, - :compare_commits, - :draft_title, - :description, - :first_multiline_commit, - :errors, - to: :merge_request + :target_branch_ref, + :target_project, + :source_branch, + :source_branch_ref, + :source_project, + :compare_commits, + :draft_title, + :description, + :first_multiline_commit, + :errors, + to: :merge_request def force_remove_source_branch if params.key?(:force_remove_source_branch) |