fix: show full file paths with links to PR diff in coverage table#67
Merged
MathurAditya724 merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
Codecov Results 📊✅ 194 passed | Total: 194 | Pass Rate: 100% | Execution Time: 287ms 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 83.33%. Project has 759 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 56.71% 56.82% +0.11%
==========================================
Files 24 24 —
Lines 1744 1753 +9
Branches 1253 1257 +4
==========================================
+ Hits 987 994 +7
- Misses 757 759 +2
- Partials 98 97 -1Generated by Codecov Action |
The 'Files with missing lines' table previously showed only the basename (e.g. 'mod.rs') which was ambiguous when multiple files shared the same name. Now it shows the full relative path and, when in PR context, renders each file as a link to its location in the GitHub PR diff view. Closes #66
dfeb599 to
c8fd8bb
Compare
This was referenced Mar 27, 2026
|
awesome thank you. I'll let you know how I get on. |
This was referenced Mar 27, 2026
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.
Summary
Fixes #66
The "Files with missing lines" table in PR comments previously showed only the file basename (e.g.
mod.rs) and rendered it as plain text. This was problematic because:mod.rsfiles in different directories)Before:
mod.rsmod.rsAfter:
Changes
src/formatters/report-formatter.ts:GitHubContextinterface andgithubContexttoReportFormatOptionsgetFileName()(basename-only) withformatFileCell()which renders the full normalized path, optionally as a markdown link to the PR diff viewbuildPrDiffUrl()helper that constructs GitHub PR diff anchors using SHA-256 of the file path (matching GitHub's#diff-{sha256hex}URL pattern)serverUrlsrc/index.ts: Build and passgithubContextfrom action runtime (github.context+GITHUB_SERVER_URLenv var)