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]
- Record the review of
helpers-core.
- Add a test case to
src/price.test.ts, and commit.
- 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
A test-only change reopens the skill review, because
sourcescannot exclude test files.Example
helpers-core.src/price.test.ts, and commit.intent maintainer review --base HEAD~1.src/*.tsalso matchesprice.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.tsinsourcesis rejected.Today we list each code file in
sourcesby hand.Proposal
A maintainer who uses Intent adds a
!entry tosources, and Intent leaves out the files it matches:src/price.tshelpers-corereopens.src/price.test.tssrc/slug.tssources.Would you accept this? If yes, we open the PR.
@tanstack/intent0.5.4