Auto stop environments for triggered pipelines in merge requests

Summary

Environments created in triggered child pipelines do not autostop after merge. https://forum.gitlab.com/t/auto-stop-environments-for-triggered-pipelines-in-merge-requests/52997

Example Project

https://gitlab.com/csomaati/env-test

What is the current bug behavior?

Environment does not autostop

What is the expected correct behavior?

Environment stops after merge