Skip to content

Name the fallback reason for .nvmrc, .node-version, .npmrc and .mocharc changes #142

Closed

Description

@adityankale190895

These files fall back to the full suite with Unknown changed file: <path> (reproduced on main, 2026-11-16):

  • .nvmrc and .node-version (Node version)
  • .npmrc (package manager settings)
  • .mocharc.json, .mocharc.yml, .mocharc.js (Mocha configuration)

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.

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. tyza66 commented on Nov 16, 2026

    @tyza66
    Contributor

    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.

  3. adityankale190895 commented on Nov 16, 2026

    @adityankale190895
    MemberAuthor

    @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.

  4. added a commit that references this issue on Nov 16, 2026
    db40153
  5. added a commit that references this issue on Nov 17, 2026
    f8a1bdf
  6. added 2 commits that reference this issue on Nov 17, 2026
    18b40b7
    0d145c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions