Skip to content

fix(impact): classify every shared lockfile as a config change - #152

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/impact-config-lockfiles
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/impact-config-lockfiles

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #97: this is the last hand-written lockfile list in src/. #151 covers analyzer.ts.

isConfigFile in src/repo/impact.ts spelled out five lockfile names in CONFIG_FILE_NAMES and left out npm-shrinkwrap.json. So a change to the shrinkwrap was classified unknown in changedFiles, while package-lock.json, yarn.lock and the rest were config. The lockfile names are now gone from that set, and isConfigFile checks the shared LOCKFILE pattern (already imported for isLockfile).

Behaviour: a changed npm-shrinkwrap.json (root or nested) now has category config, like every other lockfile. The fallback decision doesn't change, since it was already full through LOCKFILE_GLOBAL. The existing test "reports … through the lockfile rule only" still passes for every name, so this adds no UNKNOWN_FILE or other new signal.

Tests in tests/repo/impact.test.ts:

  • Next to the existing loop over LOCKFILE_NAMES, every lockfile (root and packages/web/) is classified config.
  • A lookalike (package-lock.json.bak) isn't.

Mutation check: on main, the two npm-shrinkwrap.json cases fail and everything else passes.

npm test (1093 pass, 0 fail), npm run typecheck and npm run audit:boundary pass. DCO signed off.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:40:29.478868Z abb88f7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit a181522 into DiffCI:main Nov 16, 2026
13 checks passed
@adityankale190895

Copy link
Copy Markdown
Member

Merged, thank you! This removes the last hand-written lockfile list and closes #97. I appreciated that you checked the fallback decision didn't change and added the tests for nested lockfiles and the lookalike.

adityankale190895 added a commit that referenced this pull request Nov 16, 2026
…le work

Fold #151 and #152, which the credit job appended as raw titles, into the
shared lockfile sentence of the README entry, which now names #97.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
adityankale190895 added a commit that referenced this pull request Nov 16, 2026
Moves the bundled Core engine to a35ef31, so this release ships the
contributor fixes merged since 0.3.49 (#144-#152).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

Use the shared LOCKFILE list everywhere in src/

2 participants