Update merge request approval rules when CODEOWNERS change
Summary
When using required approvals for a repository based on a CODEOWNERS file, it appears that the required approvals do not update on existing MRs when the CODEOWNERS file changes.
Steps to reproduce
Experienced on Gitlab 11.10.4
Create a CODEOWNERS file matching all files to a user. Create an MR. Update the CODEOWNERS file, on master, to point to a different owner. The original MR still requires approval only by the original CODEOWNER at time of creation.
What is the current bug behavior?
MR has approval requirement of out of date CODEOWNER file.
What is the expected correct behavior?
MR requires approval of current CODEOWNER file.
Edited by James Ramsay (ex-GitLab)