Refactor `MultiDocYaml` loader
What does this MR do and why?
This MR makes several improvements to MultiDocYaml
:
- It refactors
MultiDocYaml
to useLoader::Yaml
to load each document instead of duplicating the logic inLoader::Yaml
- It updates
MultiDocYaml
to work for document separators with additional characters in the same line:version: 3.0.0 --- !test/content job_x: script: ls
- It updates
MultiDocYaml
to ignore documents that only contain comments (some existing GitLab maintained CI templates include documents that only have comments):version: 3.0.0 --- # This document will be ignored --- job_x: script: ls
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.
Related to #383375 (closed)