Skip to content

Util

parse_github_blob(git_blob, repo_id, clerk_owner)

Parse a single blob into an object.

Where objects contain data suitable for storing in database/qdrant (specifically for code search).

PARAMETER DESCRIPTION
git_blob

The blob to parse.

TYPE: FullBlob

repo_id

The repository ID.

TYPE: RepoID

clerk_owner

The owner of the repository (either clerk_id or "public").

TYPE: str

parse_github_tree(git_tree, repo_id, clerk_owner)

Walk through all blobs in a git tree parsing them into objects.

Where objects contain data suitable for storing in database/qdrant (specifically for code search).

PARAMETER DESCRIPTION
git_tree

The tree to walk through.

TYPE: Tree

repo_id

The repository ID.

TYPE: RepoID

clerk_owner

The owner of the repository (either clerk_id or "public").

TYPE: str