Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/todo_service.rb')
-rw-r--r--app/services/todo_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/todo_service.rb b/app/services/todo_service.rb
index 71bb813f384..091f441831a 100644
--- a/app/services/todo_service.rb
+++ b/app/services/todo_service.rb
@@ -217,6 +217,11 @@ class TodoService
create_todos(reviewers, attributes)
end
+ def create_attention_requested_todo(target, author, users)
+ attributes = attributes_for_todo(target.project, target, author, Todo::ATTENTION_REQUESTED)
+ create_todos(users, attributes)
+ end
+
private
def create_todos(users, attributes)