Move todo action from app/services/merge_requests/add_todo_when_build_fails_service.rb#L11-11 to use event store

Goal

In order to fulfill the notifications design blueprint we need to move every place where we create or resolve todos or notifications to use event store.

Implementation

Please get familiar with the event store documentation.

Please get familiar with the example MR.

Please make sure to follow all conventions from that example and guidelines.

The scope for this work includes:

Remarks

IMPORTANT: If the current code is called asynchronously now, please use your best judgment to migrate it correctly to using the event store.

In case link is no longer relevant (it was captured in April 2025), please remember I meant to cupture build failed event and see if the code was moved. In case of further problems, please reach out the Personal Productivity group.

In case you have any questions, please reach out to Personal Productivity group for further assistance.