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

fix(manager/github-actions): renovate propose to delete YAML inline comments #14757

Merged

Conversation

Gabriel-Ladzaretti
Copy link
Collaborator

@Gabriel-Ladzaretti Gabriel-Ladzaretti commented Mar 22, 2022

Changes

Modified extraction regex to be more precise.

Context

closes #12260

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@Gabriel-Ladzaretti Gabriel-Ladzaretti changed the title bug(manager/github-actions): renovate propose to delete YAML inline comments fix(manager/github-actions): renovate propose to delete YAML inline comments Mar 22, 2022
@Gabriel-Ladzaretti Gabriel-Ladzaretti force-pushed the 12260-gh-del-yaml-comments branch from f5c4906 to 3047bf0 Compare March 22, 2022 10:40
@Gabriel-Ladzaretti
Copy link
Collaborator Author

https://github.com/Gabriel-Ladzaretti/renovate/blob/c28d0448c60c4ed437eadd58cdbfc6fd940f9153/lib/modules/manager/github-actions/extract.ts#L49

im using trim as the original solution to the problem @viceice mentioned (replaceString captures whitespace when there is no tag/renovate) used lookaheads. but it turns out RE2 does not supports that :{}

Copy link
Collaborator

@astellingwerf astellingwerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test that proves the issue and the corresponding fix?

@Gabriel-Ladzaretti
Copy link
Collaborator Author

@astellingwerf

Is there a test that proves the issue and the corresponding fix?

#14757 (comment)

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please add at least one comment sample to the fixtures files

@astellingwerf
Copy link
Collaborator

@astellingwerf

Is there a test that proves the issue and the corresponding fix?

#14757 (comment)

Well, those reside in another repo, so wouldn't be an integral part of the test suite for this code. I'd wanna see tests added (or updated) to the Renovate repo.

@Gabriel-Ladzaretti
Copy link
Collaborator Author

@astellingwerf

Is there a test that proves the issue and the corresponding fix?

#14757 (comment)

Well, those reside in another repo, so wouldn't be an integral part of the test suite for this code. I'd wanna see tests added (or updated) to the Renovate repo.

misunderstood 😅, anyhow ive added some

rarkins
rarkins previously approved these changes Mar 24, 2022
@Gabriel-Ladzaretti Gabriel-Ladzaretti force-pushed the 12260-gh-del-yaml-comments branch from 89fe9ea to 378ef43 Compare March 24, 2022 15:33
rarkins
rarkins previously approved these changes Mar 25, 2022
@rarkins rarkins requested a review from viceice March 25, 2022 04:45
@rarkins rarkins enabled auto-merge (squash) March 25, 2022 04:45
viceice
viceice previously approved these changes Mar 25, 2022
@viceice
Copy link
Member

viceice commented Mar 25, 2022

needs snapshot update

@rarkins rarkins dismissed stale reviews from viceice and themself via 7c22d6e March 25, 2022 09:39
@rarkins rarkins merged commit a9e0825 into renovatebot:main Mar 25, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2022
@Gabriel-Ladzaretti Gabriel-Ladzaretti deleted the 12260-gh-del-yaml-comments branch June 26, 2022 07:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renovate's GH Actions updates propose to delete YAML inline comments
5 participants