Commit d429835a authored by Humberto Pereira's avatar Humberto Pereira

Added hook execution to reopened e updated merge requests

parent 1e8add32
...@@ -38,12 +38,14 @@ class MergeRequestObserver < ActivityObserver ...@@ -38,12 +38,14 @@ class MergeRequestObserver < ActivityObserver
def after_reopen(merge_request, transition) def after_reopen(merge_request, transition)
create_event(merge_request, Event::REOPENED) create_event(merge_request, Event::REOPENED)
create_note(merge_request) create_note(merge_request)
execute_hooks(merge_request)
end end
def after_update(merge_request) def after_update(merge_request)
notification.reassigned_merge_request(merge_request, current_user) if merge_request.is_being_reassigned? notification.reassigned_merge_request(merge_request, current_user) if merge_request.is_being_reassigned?
merge_request.notice_added_references(merge_request.project, current_user) merge_request.notice_added_references(merge_request.project, current_user)
execute_hooks(merge_request)
end end
def create_event(record, status) def create_event(record, status)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment