Repository navigation
fix: name a tsconfig variant as TypeScript configuration instead of unknown - #155
Merged
adityankale190895 merged 1 commit intoNov 17, 2026
Merged
Conversation
…nknown `tsconfig.json` changes were already configuration, but `tsconfig.base.json` (the file a monorepo shares through `extends`) and per-target variants such as `tsconfig.test.json` fell through to `Unknown changed file: …`. The full run is right either way — a compiler configuration decides every file's types — but the reason made a decision read like a gap in DiffCI. `CONFIG_PATTERNS` gains `tsconfig\.[^/]+\.json` and `jsconfig\.[^/]+\.json` anchored at the root, and `toolConfigurationSubject` names them: `Tool configuration changed: TypeScript configuration (tsconfig.base.json); full validation required`. The pattern is deliberately narrower than `type-program.ts`'s `tsconfig[^/]*\.json`, which would also match the package name `tsconfig-paths.json`; that name, and the root `tsconfig.json`, keep their current reasons. Fixes DiffCI#141 Signed-off-by: tyza66 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Member
This was referenced Nov 17, 2026
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.
Fixes #141.
A change to only
tsconfig.base.json(the file a monorepo shares throughextends) or a standalonetsconfig.test.jsonfell back withUnknown changed file: <path>. Running everything is right — acompiler configuration decides every file's types — but the reason read like a gap in DiffCI rather
than a decision, and these files are common.
What changed
CONFIG_PATTERNSgainstsconfig\.[^/]+\.jsonandjsconfig\.[^/]+\.json, anchored at the root.toolConfigurationSubjectnames them, so the reason isTool configuration changed: TypeScript configuration (tsconfig.base.json); full validation required.type-program.ts'stsconfig[^/]*\.json, as @Kin230kpointed out:
tsconfig-paths.jsonis a package's config file and stays unknown. The roottsconfig.jsonkeeps its existing generic configuration reason — this change moves no existingclassification, it only adds the variants.
Fixtures (
tests/repo/tsconfig-variant-reason.test.ts), asserting both halves as agreed in thethread — every test still runs, and the reason names the file as a TypeScript configuration:
tsconfig.base.jsonbeside atsconfig.jsonthat extends it, a standalonetsconfig.test.json, andone
jsconfig.test.json: FULL, every test selected, nothing skipped, the named reason present, noUnknown changed filefor that path.tsconfig.jsonitself: stillConfiguration file(s) changed…, never the new reason.tsconfig-paths.json: stillUnknown changed file, which pins the matching boundary.tests/repo/config-patterns.test.tspairs the two new patterns with real file names in order and nowasserts
tsconfig-paths.jsonmatches nothing;release-files.jsonand thedocs/using-diffci.mdFallback reasons table move with it.
Validation
npm run typecheck,npm run audit:boundary(384 files) pass.npm test: 1108 pass. The 9 failures are the Rust/Cargo selection tests and the Python end-to-endtest, the same set
mainfails here (8–9 depending on the run, the shared temp fixtures race);tests/repo/python-adapter.test.tspasses when run alone, and nothing here touches an adapter.Narrowing on
extendsstays a follow-up, as agreed.