• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 28946719726
69%

Build:
DEFAULT BRANCH: main
Ran 08 Jul 2026 01:36PM UTC
Jobs 1
Files 434
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jul 2026 01:33PM UTC coverage: 68.225% (-0.02%) from 68.249%
28946719726

push

github

web-flow
chore(github, tools): Reject PR review comments outside diff (#857)

`add_review_thread` now returns the thread GitHub actually created,
including its resolved `line`. GitHub's `addPullRequestReviewThread`
mutation silently accepts anchors that fall outside the PR's diff hunks:
it creates a thread, but the review UI never renders it, so the comment
vanishes without any error. The mutation now also treats a missing/null
`thread` in the GraphQL response as a hard error instead of reporting
success for a no-op.

The `github_pr_review_add_comment` tool uses this to validate anchors
against the PR's diff before posting: it fetches the target file's
patch, parses commentable line ranges from the hunk headers, and rejects
`line`/`start_line` values that fall outside them, reporting the valid
ranges and the nearest commentable line so the caller can retry in one
follow-up call. The approval preview shown before posting carries the
same check as a non-fatal warning, so a reviewer sees the problem before
approving. A post-mutation check remains as a safety net for files
GitHub can't return a patch for (binary/oversized) and for races where
the PR head moves between validation and posting.

The `pr_review_add_comment` tool description documents the new anchoring
requirement.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

116 of 184 new or added lines in 2 files covered. (63.04%)

9 existing lines in 3 files now uncovered.

39162 of 57401 relevant lines covered (68.23%)

669.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
68
27.56
17.15% .config/jp/tools/src/github/review.rs

Coverage Regressions

Lines Coverage ∆ File
7
81.86
-3.1% crates/contrib/schematic_macros/src/common/field.rs
1
27.56
17.15% .config/jp/tools/src/github/review.rs
1
90.74
-0.93% crates/contrib/schematic_macros/src/common/container.rs
Jobs
ID Job ID Ran Files Coverage
1 28946719726.1 08 Jul 2026 01:36PM UTC 434
68.23
GitHub Action Run
Source Files on build 28946719726
  • Tree
  • List 434
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28946719726
  • 17ea02d0 on github
  • Prev Build on main (#28933722758)
  • Next Build on main (#28996865775)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc