-
Notifications
You must be signed in to change notification settings - Fork 393
feat: pass accountId to resolveConfig #6733
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: pass accountId to resolveConfig #6733
Conversation
📊 Benchmark resultsComparing with 37d8193
|
@@ -685,6 +687,7 @@ export default class BaseCommand extends Command { | |||
|
|||
try { | |||
return await resolveConfig({ | |||
accountId: this.accountId, |
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.
I'm curious how we know we'll have accountId
on this
?
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.
I share your curiosity because we do the same for siteId, but it seems to work, let me see
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.
ah I understand, because we assign it to the actionCommand
which is of type BaseCommand
. This means that anything assigned to it will be available on this
when the command is run. Happy I understand it now.
fwiw I tried just assigning it to this
in the baseCommand itself but it doesn't persist
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.
ah ok awesome!
…ture-flags-to-netlifyconfig-v2
🎉 Thanks for submitting a pull request! 🎉
Summary
Passes
accountId
toresolveConfig()
which is going to be used when fetching build eventsFor us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)