8000 Fix check for package.json path by ncalteen · Pull Request #167 · github/local-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix check for package.json path #167

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

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Fix check for package.json path #167

merged 1 commit into from
Mar 11, 2025

Conversation

ncalteen
Copy link
Collaborator

This pull request includes minor version updates and improvements to the directory traversal logic in the run command.

@ncalteen ncalteen self-assigned this Mar 11, 2025
@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 16:07
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the package.json path logic for the run command by updating the directory traversal logic.

  • Updated package.json path construction from process.env.TARGET_ACTION_PATH to use the actual directory tree
  • Added a flag variable to explicitly track if the file was found
Comments suppressed due to low confidence (1)

src/commands/run.ts:122

  • The variable name 'found' is ambiguous. Use a more descriptive name such as 'foundPackageJson' to clearly indicate its purpose.
let found = false

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@ncalteen ncalteen merged commit 74eb576 into main Mar 11, 2025
8 of 9 checks passed
@ncalteen ncalteen deleted the ncalteen/dirs branch March 11, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0