MCPcopy Create free account
hub / github.com/analysis-tools-dev/static-analysis / parse_github_repo

Function parse_github_repo

ci/pr-check/src/main.rs:286–301  ·  view source on GitHub ↗

Parses `owner` and `repo` out of a GitHub URL like `https://github.com/owner/repo` or `https://github.com/owner/repo/`. Returns `None` for non-GitHub URLs or malformed paths.

(url: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

parses_plain_github_urlFunction · 0.85
parses_trailing_slashFunction · 0.85
rejects_subpathFunction · 0.85
rejects_gitlabFunction · 0.85
rejects_missing_repoFunction · 0.85

Calls

no outgoing calls

Tested by 5

parses_plain_github_urlFunction · 0.68
parses_trailing_slashFunction · 0.68
rejects_subpathFunction · 0.68
rejects_gitlabFunction · 0.68
rejects_missing_repoFunction · 0.68