Fix the merge notification email not being sent
Created by: kemenaran
I broke the merge notification emails in the 6.7.* branch.
This commit restore the email notification for merged MR. The author_id_of_changes
attribute was always nil (as this attribute is not persisted to the database). Also there was no tests for the merge email notification — tests have been added.
Fix #6605