Skip to content

Exclude test files from a skill's sources #331

Description

@viclafouch

A test-only change reopens the skill review, because sources cannot exclude test files.

Example

src/price.ts
src/price.test.ts
skills/helpers-core/SKILL.md   sources: [src/*.ts]
  1. Record the review of helpers-core.
  2. Add a test case to src/price.test.ts, and commit.
  3. Run intent maintainer review --base HEAD~1.
Skill: "skills/helpers-core/SKILL.md"
  Changed: "src/price.test.ts"

src/*.ts also matches price.test.ts, so a test change needs a skill review.

What does not work

  • review.ignore: [src/**/*.test.ts] skips unmapped files only.
  • :(exclude)src/*.test.ts in sources is rejected.

Today we list each code file in sources by hand.

Proposal

A maintainer who uses Intent adds a ! entry to sources, and Intent leaves out the files it matches:

sources:
  - src/*.ts
  - '!src/**/*.test.ts'
Change Result
src/price.ts The review of helpers-core reopens.
src/price.test.ts No skill review.
New file src/slug.ts Covered, with no edit to sources.

Would you accept this? If yes, we open the PR.

@tanstack/intent 0.5.4

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions