Open
Description
Currently there isn't any method to add or update comments in a yaml file.
Usecase: we currently use a script to update dependencies in our flutter projects, We also want to append comments to it showcasing that it's AutoGenerated and should not be modified by hand. invertase/melos#692
A similar approach is being used in Flutter repo: https://github.com/flutter/flutter/blob/master/packages/flutter/pubspec.yaml#L33-L49