Repository navigation
refactor(impact): use the shared lockfile pattern in isLockfile - #119
adityankale190895 merged 2 commits into
Conversation
isLockfile in impact.ts spelled out the lockfile names in its own regex. Match the basename against LOCKFILE from src/repo/lockfiles.ts instead, so it can't drift from the other lockfile signals. Part of DiffCI#97 Signed-off-by: sarankumar1325 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8400b456fb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1 @@ | |||
| ../s305a-diffci/node_modules No newline at end of file | |||
There was a problem hiding this comment.
Remove the environment-specific dependency symlink
../s305a-diffci/node_modules is an external, environment-specific target and is dangling in this checkout. The documented setup is npm ci (CONTRIBUTING.md:5); npm's help describes it as a “Clean install a project,” and it removes this symlink as a non-directory before installing, leaving the tracked entry deleted after setup. Remove the link and let each checkout create its own ignored dependency directory.
Useful? React with 👍 / 👎.
Signed-off-by: sarankumar1325 <[email protected]>
Part of #97 (this PR covers
src/repo/impact.ts; the issue says one PR per file is fine)isLockfileinimpact.tsspelled out the lockfile names in its own regex,(?:^|/)(?:package-lock\.json|…|bun\.lockb?)$. It now tests the basename against the sharedLOCKFILEpattern fromsrc/repo/lockfiles.ts. The two match the same paths, so behaviour is unchanged; the point is that a lockfile added to the shared pattern also reaches this check.file-references.tsandgit-diff.ts(PACKAGE_LOCKFILES) are covered in their own PRs.CONFIG_PATTERNSis not touched.Tests
tests/repo/impact.test.ts: new cases for every name inLOCKFILE_NAMES, at the root and inpackages/web/. A change to only that lockfile falls back throughLOCKFILE_GLOBALand raises noUNKNOWN_FILEsignal. Mutation check: makingisLockfilemissnpm-shrinkwrap.jsonfails 2 cases (the JSON lockfile is otherwise treated as an unknown asset).npm test: 930 pass, 0 fail.npm run typecheckandnpm run audit:boundaryare clean.AI assistance was used to prepare this change; I reviewed and tested it.