Repository navigation
Conversation
`listPullFiles` defaults `fetchImpl` to global `fetch`, so the test double's `url` parameter is typed `RequestInfo | URL`. Interpolating that union into a template literal trips typescript(restrict-template-expressions), which fails `audit:code-quality:type-aware` — and with it the static analysis job on every PR opened against main. Use the string form explicitly for both the page lookup and the error message.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe paginated fetch test now converts the requested URL to a string before using it as the 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Author
|
Superseded by #14755, which landed the same |
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.
Why
audit:code-quality:type-awarecurrently fails onmain, which fails the static analysis job on every PR opened against it (seen on #14749 and #14750):listPullFilesdefaultsfetchImplto the globalfetch, so the test double'surlparameter is typedRequestInfo | URL. That union includesRequest, which has no meaningful string form, so interpolating it into a template literal tripstypescript(restrict-template-expressions).This landed green in #14738 but fails on
mainnow, so it needs an explicit fix rather than a re-run.Change
Take the string form once and use it for both the page lookup and the error message. Behavior is identical — the keys were always strings.
Verification
pnpm run audit:code-quality:type-aware: exit 0config/scripts/pr-test-loc-summary.test.mjs: 8 tests passingUnblocks #14749 and #14750.