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

dcdpr / jp / 26021462710
66%

Build:
DEFAULT BRANCH: main
Ran 18 May 2026 08:12AM UTC
Jobs 1
Files 319
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

18 May 2026 08:10AM UTC coverage: 64.958% (-0.1%) from 65.098%
26021462710

push

github

web-flow
chore(tools, github): Add `repository`, `page` params + comment fetching (#650)

The `github_issues` and `github_pulls` tools were previously hardcoded
to the project's own GitHub repository and returned no comments. This
commit addresses both limitations.

Both tools now accept a `repository` parameter in `owner/repo` form,
defaulting to the project's own repo when omitted. A `parse_repo()`
helper centralises the parsing and default logic, replacing ad-hoc
`split_once('/')` calls scattered across the tool modules.

A `page` parameter was added to both tools so that long comment threads
can be walked incrementally. When a specific `number` is provided, the
tool fetches that page of conversation comments (10 per page) and
includes them in the response alongside a `comments_count` total. The
page size is intentionally bounded to keep responses within LLM context
limits.

The underlying `jp_github` crate gained a `list_comments()` method on
`IssuesHandler`, backed by a new `IssueCommentListBuilder` and a
`Comment` model. The `Issue` model also now carries a `comments` field
(the total count) which GitHub exposes on both the list and detail
endpoints.

Auth handling was also improved: `github_issues`, `github_pulls`, and
`github_read_file` now use a new `auth_optional()` path that falls back
to anonymous access when no token is configured. Read-only operations
against public repos no longer require a token.

Finally, `web_fetch` now detects GitHub issue and PR URLs and returns a
redirect error pointing at the correct dedicated tool, rather than
silently returning near-empty HTML (GitHub renders comments
client-side).

---------

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

126 of 394 new or added lines in 8 files covered. (31.98%)

6 existing lines in 4 files now uncovered.

26936 of 41467 relevant lines covered (64.96%)

179.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
96
0.0
.config/jp/tools/src/github/pr_diff.rs
51
0.0
0.0% .config/jp/tools/src/github/issues.rs
41
5.76
5.76% .config/jp/tools/src/github.rs
38
0.0
0.0% .config/jp/tools/src/github/pulls.rs
32
63.06
-3.88% crates/jp_attachment_github/src/lib.rs
7
0.0
0.0% .config/jp/tools/src/github/repo.rs
3
54.79
17.29% .config/jp/tools/src/web/fetch.rs

Coverage Regressions

Lines Coverage ∆ File
2
0.0
0.0% .config/jp/tools/src/github/pulls.rs
2
66.39
-0.83% crates/jp_github/src/client.rs
1
0.0
0.0% .config/jp/tools/src/github/issues.rs
1
63.06
-3.88% crates/jp_attachment_github/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 26021462710.1 18 May 2026 08:12AM UTC 319
64.96
GitHub Action Run
Source Files on build 26021462710
  • Tree
  • List 319
  • Changed 10
  • Source Changed 8
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26021462710
  • 6a4c45c1 on github
  • Prev Build on main (#25964523267)
  • Next Build on main (#26021826760)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc