-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(config/migration): migrate config with a PR #15122
feat(config/migration): migrate config with a PR #15122
Conversation
Example PR ladzaretti/feat-config-migration#1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Currently this code is too "scattered" across many files. We should try to isolate it into as few locations as possible
- Please look into whether it can be delayed and done as part of repository finalization
- I don't think we need to make this a globalOnly solution like onboarding as this would mean nobody in the hosted app can turn it on or off individually
moved to finilize repo
1 + 2. now we have a single execution entry point at |
migrated-config-data.ts modifications
drop globalOnly setting for config migration
files excluded from null check
lib/workers/repository/config-migration/branch/migrated-config-data.ts
Outdated
Show resolved
Hide resolved
- removed some unnecessary config flags - migrated from using model/commit-message for now being - moved gitAuthor near commitAndPush - migrated-config-data is now a static factory class now using handlebars for prbody
- strict null check fixes
lib/workers/repository/config-migration/branch/migrated-data.ts
Outdated
Show resolved
Hide resolved
lib/workers/repository/config-migration/branch/migrated-data.ts
Outdated
Show resolved
Hide resolved
lib/workers/repository/config-migration/branch/migrated-data.ts
Outdated
Show resolved
Hide resolved
- added unit tests for branch/create + commit-message
- CR changes
- removed configMigrationBranch from RenovateConfig - revert onboardingPrTitle (globalOnly = true) - revert pruneStaleBranches - added config-migration/common.ts to hold migration branch name
- added unit tests for branch/rebase
- added unit tests for branch/migrated-data
- updated unit tests for branch/migrated-data
- added unit tests for branch/index
- added unit tests for pr/error-warnings - added unit tests for pr/index
- fixed replaceAll
- added a configMigration entry in configuration-options.md
- create.spec.ts: cover untaken branch
lib/workers/repository/config-migration/pr/errors-warnings.spec.ts
Outdated
Show resolved
Hide resolved
lib/workers/repository/config-migration/pr/errors-warnings.spec.ts
Outdated
Show resolved
Hide resolved
…aretti/renovate into feat-config-migrate
b988058
to
d2bd864
Compare
- move spy to module scope
- update 422 pr catch block
Updated the |
Anything else to do here :? |
- remove unnecessary default branch check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if we can do something like this for shared presets too in future 🙃
🎉 This PR is included in version 32.90.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
Create a PR when config migration is needed, similarly to the way onboarding PR are made.
Context
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: