Include merge-requests in RESERVED_REFS_NAMES
What does this MR do and why?
When importing a project currently we delete the merge-request refs, but for an in-progress MR we want to keep these.
Looking at the history of the reserved ref names, in the initialcommit to the cleanup service, 5f811894, merge-requests was included in the list, but in 081e2fce we transferred the list to the repository model and inadvertently duplicated environments and left out merge-requests. We fixed the duplicate environment entry with ba6d3fcb, but never re-added merge-requests.
This commit re-adds merge-requests to the reserved reference list. No additional tests added because the existing tests already validate that all reference types in RESERVED_REFS_NAMES are not removed.
How to set up and validate locally
-
Export a project with an open MR
-
Import project
-
Confirm merge-request refs were not deleted.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.