mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Everytime the User check or uncheck a Task Item from the Issue or Merge Request description, a new update is going to be added to the activity logs of the Issue or Merge Request. Note that when using the edit form, you can only update the Task item status or add/delete/modify existing ones. Doing both actions is not fully supported.
27 lines
550 B
Ruby
27 lines
550 B
Ruby
module Issues
|
|
class UpdateService < Issues::BaseService
|
|
def execute(issue)
|
|
update(issue)
|
|
end
|
|
|
|
def handle_changes(issue)
|
|
if issue.previous_changes.include?('milestone_id')
|
|
create_milestone_note(issue)
|
|
end
|
|
|
|
if issue.previous_changes.include?('assignee_id')
|
|
create_assignee_note(issue)
|
|
notification_service.reassigned_issue(issue, current_user)
|
|
end
|
|
end
|
|
|
|
def reopen_service
|
|
Issues::ReopenService
|
|
end
|
|
|
|
def close_service
|
|
Issues::CloseService
|
|
end
|
|
end
|
|
end
|