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(migrations): split #13499
feat(migrations): split #13499
Conversation
lib/config/migrations/custom/enabled-managers-migration.spec.ts
Outdated
Show resolved
Hide resolved
override run(value): void { | ||
const rebaseConflictedPrs = this.get('rebaseConflictedPrs'); | ||
|
||
if (rebaseConflictedPrs !== false) { |
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.
IMO the double negative is a little confusing
if (rebaseConflictedPrs !== false) { | |
if (rebaseConflictedPrs === true) { |
or
if (rebaseConflictedPrs !== false) { | |
if (rebaseConflictedPrs) { |
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.
Now I re-read this, I realise that rebaseConflictedPrs
is boolean | undefined
so you'd need rebaseConflictedPrs === true || rebaseConflictedPrs === undefined
. Gotta love that trinary logic 😅
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.
Just a couple of small comments from me. I love this new style of migration!
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
🎉 This PR is included in version 31.24.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Context:
Documentation
How I've tested my work
I have verified these changes via: