diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-15 02:57:43 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-15 02:57:43 +0400 |
commit | 5a3f23f395eef87bf3457e6474bac82333e71ec8 (patch) | |
tree | 248f5314979c9f86149b3a268cda4f182b402141 /app/workers | |
parent | 27e36998143adca9427750fc90caec1271a4e3d0 (diff) |
Persist Merge Request diff. Auto merge request close on push
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/post_receive.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb index d74f10a1ce5..28216ec33da 100644 --- a/app/workers/post_receive.rb +++ b/app/workers/post_receive.rb @@ -8,7 +8,13 @@ class PostReceive # Ignore push from non-gitlab users return false unless Key.find_by_identifier(author_key_id) + # Create push event project.observe_push(oldrev, newrev, ref, author_key_id) + + # Close merged MR + project.update_merge_requests(oldrev, newrev, ref, author_key_id) + + # Execute web hooks project.execute_web_hooks(oldrev, newrev, ref, author_key_id) end end |