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

refactor(config-migration): invoke applyPrettierFormatting at the commit stage #18150

Merged
merged 20 commits into from
Nov 16, 2022

Conversation

Gabriel-Ladzaretti
Copy link
Collaborator

@Gabriel-Ladzaretti Gabriel-Ladzaretti commented Oct 6, 2022

Changes

Now comparing existing renovate.config file and the newly generated config file hashes (whitespaces omitted) instead of raw strings. This way we are not reliant on the applyPrettierFormatting function when doing so.

Moved applyPrettierFormatting into the static factory class.

Now applyPrettierFormatting is only invokes before committing (in this stage the we already cloned).

Context

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 marked this pull request as ready for review October 6, 2022 10:12
rarkins
rarkins previously approved these changes Oct 14, 2022
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.

see comment

rarkins
rarkins previously approved these changes Oct 17, 2022
@Gabriel-Ladzaretti Gabriel-Ladzaretti marked this pull request as ready for review October 25, 2022 09:24
martincerveny
martincerveny previously approved these changes Nov 1, 2022
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.

otherwise LGTM

@rarkins rarkins enabled auto-merge (squash) November 16, 2022 04:42
@rarkins rarkins merged commit 576d4d8 into renovatebot:main Nov 16, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 34.26.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2022
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.

Config migration - move applyPrettierFormatting to later in code
5 participants