-
Notifications
You must be signed in to change notification settings - Fork 273
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: rename action
to actions
in template context
#4194
refactor: rename action
to actions
in template context
#4194
Conversation
dd22144
to
35e2ed6
Compare
The references guides are generated automatically.
35e2ed6
to
ba9876a
Compare
This is ready for review now. All tests are green! |
action
to actions
in template context
const { action, garden, partialRuntimeResolution, variables, inputs, resolvedDependencies, executedDependencies } = | ||
params | ||
const { | ||
action, |
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 double checking: we're intentionally passing in a singular action
here to the constructor?
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 think so. The assignment looks like this:
this.actions = new ActionReferencesContext(this, partialRuntimeResolution, [
...resolvedDependencies,
...executedDependencies,
])
The action
is not used directly there. And the original TODO comment was about changing the template context syntax for better clarity.
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.
Looks good
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.
Looks good!
What this PR does / why we need it:
See individual commits for details.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
The
action-types.hbs
templatehas already had
actions
key in the template strings.