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

nephila / giturlparse / 27601073548
96%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2026 07:20AM UTC
Jobs 1
Files 13
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

16 Jun 2026 07:20AM UTC coverage: 96.246%. Remained the same
27601073548

push

github

web-flow
Fix path/branch extraction stripping every marker occurrence (#152)

GitHubPlatform and GitLabPlatform built `path`/`branch` with
str.replace(marker, ""), which removes *every* occurrence of the
marker rather than only the leading one. A URL whose file path or
branch name contained the same segment again was silently corrupted:

    parse('.../blob/main/src/blob/utils.py').path  -> 'main/srcutils.py'
    parse('.../tree/feature/tree/x').branch        -> 'featurex'

The leading marker is already guaranteed by the preceding startswith
check, so slice it off instead. Slicing (rather than str.removeprefix)
keeps the declared Python 3.8 compatibility. Adds regression tests for
nested /blob/ paths and /tree/ branch names on both GitHub and GitLab.

Co-authored-by: patchwright <292882882+patchwright@users.noreply.github.com>

41 of 42 branches covered (97.62%)

Branch coverage included in aggregate %.

241 of 251 relevant lines covered (96.02%)

3.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27601073548.1 16 Jun 2026 07:20AM UTC 13
96.25
GitHub Action Run
Source Files on build 27601073548
  • Tree
  • List 13
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27601073548
  • cf249252 on github
  • Prev Build on master (#27258276392)
  • Next Build on master (#27601104723)
  • Delete
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