Improve email notification on issue close
Problem to solve
When you close an issue, a notification is sent over email with the following text:
Issue was closed by ...
There are cases where we want to easily know if an issue has been closed because of a merged MR.
This is quite important because if I see that an issue has been closed by a MR, I don't need to dig into details. I trust the person that merged the change, and I can just dismiss the notification. If the issue has been "manually" closed, I want to step in and understand what happened.
Proposal
In the notification email, mention if the issue has been closed because of a MR, like it is shown in the issue system notes.
For example:
Issue was closed via merge request !7920 (merged) by ...