Skip to content

Add regression test for MergeYaml inline comment preservation#6757

Closed
Jenson3210 wants to merge 1 commit intomainfrom
test/merge-yaml-inline-comments
Closed

Add regression test for MergeYaml inline comment preservation#6757
Jenson3210 wants to merge 1 commit intomainfrom
test/merge-yaml-inline-comments

Conversation

@Jenson3210
Copy link
Copy Markdown
Contributor

Summary

  • Adds a regression test verifying that inline YAML comments (e.g., key: false # comment) are preserved when MergeYaml merges new entries into nested mappings
  • The test covers the scenario from moderneinc/customer-requests#1873 where multiple sibling sub-mappings receive new entries simultaneously

Test plan

  • New test mergeIntoNestedMappingPreservesInlineComments passes on HEAD
  • All existing MergeYamlTest tests continue to pass

Adds a test verifying that inline YAML comments are preserved when
MergeYaml merges new entries into nested mappings with multiple
sibling sub-mappings being modified simultaneously.

Closes moderneinc/customer-requests#1873
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 17, 2026
@Jenson3210 Jenson3210 closed this Feb 17, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 17, 2026
@Jenson3210 Jenson3210 deleted the test/merge-yaml-inline-comments branch February 17, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant