Open discussions from pipeline?

Is it somehow possible to open a discussion automatically from a pipeline?
Imagine a source code which contains TODO action items. On a merge request, the pipeline could automatically open discussions on each line which contains a TODO. This would force the devs to resolve the TODO, or to extract it to an official issue. Is this already possible?