summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2015-09-25 16:07:08 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2015-10-08 16:37:04 -0400
commit6b739027330cb07484b71c748e30d5966f63d647 (patch)
tree2cdf6793f774e5bb3a49dec4b369e4e13cb396ea /app
parent380392212f87fc80bd45c322eda54461d47745b0 (diff)
downloadgitlab-ce-6b739027330cb07484b71c748e30d5966f63d647.tar.gz
merge_request: add work_in_progress to MR hooks
Diffstat (limited to 'app')
-rw-r--r--app/models/merge_request.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index f69b7a13c4b..c83b15c7d39 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -275,7 +275,8 @@ class MergeRequest < ActiveRecord::Base
attrs = {
source: source_project.hook_attrs,
target: target_project.hook_attrs,
- last_commit: nil
+ last_commit: nil,
+ work_in_progress: work_in_progress?
}
unless last_commit.nil?