MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _parse

Function _parse

tests/test_feedback.py:22–27  ·  view source on GitHub ↗

Parse a prefilled-issue URL into its query-param dict (single values).

(url: str)

Source from the content-addressed store, hash-verified

20
21
22def _parse(url: str) -> dict:
23 """Parse a prefilled-issue URL into its query-param dict (single values)."""
24 parts = urlparse(url)
25 qs = parse_qs(parts.query)
26 # parse_qs yields lists; flatten the singletons we care about.
27 return {k: v[0] for k, v in qs.items()}
28
29
30def test_build_url_points_at_correct_repo_issue_new():

Calls

no outgoing calls

Tested by

no test coverage detected