Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are blocking approval.
No open issues 🎉
What changed in this PR
Fixes lifecycle entrypoint resolution in the local action runner by waiting until the action directory is initialized before resolving --pre and --post.
Changes:
- Moves lifecycle entrypoint validation into a
preActionhook while retaining invalid-argument errors. - Strengthens tests for resolved paths, optional lifecycle entrypoints, and missing files.
- Bumps the package version to
7.0.2, with no dependency changes.
| File | Description |
|---|---|
src/​command.ts |
Defers lifecycle path resolution until positional arguments are processed. |
package.json |
Bumps the patch version to 7.0.2. |
package-lock.json |
Synchronizes root package version metadata. |
__tests__/​command.test.ts |
Removes manual action-path initialization and expands lifecycle regression coverage. |
Review effort: Balanced (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--preand--postentrypoints after positional arguments have been parsed using Commander'spreActionhook.EnvMeta.actionPath.7.0.2in accordance with the contribution guidelines.Refs #271.
Validation
This PR focuses on lifecycle entrypoint resolution. The separate dependency-stubbing behavior reported in #271 is outside its scope.