You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Name the fallback reason for .nvmrc, .node-version, .npmrc and .mocharc changes #142
A full run is the right outcome for each of them, but the reason doesn't say why, so users can't tell a real fallback from a gap in DiffCI. Their reason should name what the file controls, for example "Node version changed (.nvmrc)" or "Mocha configuration changed (.mocharc.json)".
The "Unknown changed file" message comes from src/repo/impact.ts (around line 1107). Known files are classified earlier, in CONFIG_PATTERNS (src/git/git-diff.ts line 199) and src/repo/file-references.ts.
Done when: each file above gets a specific fallback reason, and a test asserts the FULL plan and the new reason for each. One file group per PR is fine. .tool-versions (asdf, mise) is a welcome extra.
New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.
I'd like to take this one, claiming before I start.
I'll keep it to the .nvmrc / .node-version / .npmrc group first (Node version and package-manager settings), since the issue says one file group per PR is fine, and take .mocharc.* / .tool-versions in a follow-up — say if you would rather have all of them in one PR.
Plan: classify these in CONFIG_PATTERNS (src/git/git-diff.ts) next to the existing tsconfig.json entry so they stop falling through to "Unknown changed file", with a reason naming what the file controls ("Node version changed (.nvmrc)"), and a test in tests/repo/ asserting the FULL plan and the new reason for each. Commits signed off with git commit -s as CONTRIBUTING.md asks.
@tyza66 Thanks, it's yours. Splitting it is fine: start with .nvmrc / .node-version / .npmrc, then do .mocharc.* and .tool-versions in the follow-up. Your plan sounds right.
Activity
tyza66 commentedon Nov 16, 2026
I'd like to take this one, claiming before I start.
I'll keep it to the
.nvmrc/.node-version/.npmrcgroup first (Node version and package-manager settings), since the issue says one file group per PR is fine, and take.mocharc.*/.tool-versionsin a follow-up — say if you would rather have all of them in one PR.Plan: classify these in
CONFIG_PATTERNS(src/git/git-diff.ts) next to the existingtsconfig.jsonentry so they stop falling through to "Unknown changed file", with a reason naming what the file controls ("Node version changed (.nvmrc)"), and a test intests/repo/asserting the FULL plan and the new reason for each. Commits signed off withgit commit -sas CONTRIBUTING.md asks.adityankale190895 commentedon Nov 16, 2026
@tyza66 Thanks, it's yours. Splitting it is fine: start with
.nvmrc/.node-version/.npmrc, then do.mocharc.*and.tool-versionsin the follow-up. Your plan sounds right.fix: name the Node version and package manager configuration in the f…
fix: fall back when code a tool loads by name changes and nothing imp…
fix: fall back for Mocha configuration, and say so
fix: fall back for Mocha configuration, and say so (#156)
fix(impact): name tool-version files instead of reporting them as unk…