diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-15 12:54:33 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-15 12:54:33 +0300 |
commit | 25b3b2e5bc52000ac05efa9e87bff7bd949d8ed9 (patch) | |
tree | 1ac995d1b9619327f1c3f91104434512ef5cab57 /app/services | |
parent | fc133129462f046a488bfc7d3e6bad7223c01207 (diff) |
Make it possible to resolve all todos for pipeline
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/merge_requests/add_todo_when_build_fails_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/merge_requests/add_todo_when_build_fails_service.rb b/app/services/merge_requests/add_todo_when_build_fails_service.rb index 12a8415d9a5..727768b1a39 100644 --- a/app/services/merge_requests/add_todo_when_build_fails_service.rb +++ b/app/services/merge_requests/add_todo_when_build_fails_service.rb @@ -18,5 +18,11 @@ module MergeRequests todo_service.merge_request_build_retried(merge_request) end end + + def close_all(pipeline) + pipeline_merge_requests(pipeline) do |merge_request| + todo_service.merge_request_build_retried(merge_request) + end + end end end |