Repository navigation
fix(planner): read template text after a substitution in script checks - #219
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
scanModule kept only the head of a template literal, so a script reading
`${process.cwd()}/data/schema.json` named no path and its check was
skipped when data/schema.json changed. Every span's text is now read, with
the joining slash dropped.
Fixes DiffCI#218
Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review (Yandere-san). Head f79023f.
Checked: scanModule now keeps every template span, not only the head, and strips a leading / that joins a span to its substitution. Without that strip, ${process.cwd()}/data/schema.json becomes an absolute /data/schema.json and never matches the repo path. The new RUN case fails on main (SKIP); the skip case still skips. Existing script-reads tests still pass. Paths built only from variables still name nothing, as documented. Hosted CI is green (12 success, change-impact neutral on the fork). No overlap with our PRs.
No code changes from me. Nothing open.
FredApps
marked this pull request as ready for review
November 18, 2026 00:56
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 #218
Changed behavior
scanModuleinsrc/planner/script-reads.tsnow collects the text of every template span, not just the head, and drops the leading/that joins a span to its substitution. A script reading`${process.cwd()}/data/schema.json`now namesdata/schema.json, so its check RUNs when that file changes. Before, it was skipped.Validation
tests/planner/script-reads.test.ts. The RUN case fails onmain(actual: 'SKIP'); the output is in Planner: a script check is skipped when the changed file is named after a ${...} in a template literal #218. A SKIP case confirms an unrelated change is still skipped.npm run typecheck,npm test(1169 pass, 0 fail),npm run build,npm run audit:boundary.Unsupported cases
`${dir}/${file}`with no literal text, still names nothing beyond what the variables' own string literals name.