Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Eventwatcher to encode comments at the same line as value #2460

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

nakabonne
Copy link
Member

@nakabonne nakabonne commented Sep 10, 2021

What this PR does / why we need it:
Until now, Eventwatcher has deleted comments at the same line like:

foo:
  bar: baz # comment

This PR fixes to not be deleted.

See more: goccy/go-yaml#248 (comment)

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Fix a bug that Eventwatcher deletes comments at the same line at the YAML value

@khanhtc1202
Copy link
Member

Cool
/lgtm

@nghialv
Copy link
Member

nghialv commented Sep 10, 2021

Nice.
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.39%. This pull request increases coverage by 0.01%.

File Function Base Head Diff
pkg/yamlprocessor/yamlprocessor.go Processor.ReplaceString 100.00% 100.00% +0.00%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants