Skip to content

Clone

thoth.ingestion.flows.clone

Clone handbook repository to GCS.

logger = setup_logger(__name__) module-attribute

clone_handbook(_request: Request) -> JSONResponse async

Clone the GitLab handbook repo to GCS for ingestion (one-time setup).

Uses the pipeline's GCSRepoSync to clone the repo into the configured bucket/prefix. Requires GCS_BUCKET_NAME and pipeline configured for GCS.

Returns:

Type Description
JSONResponse

JSONResponse with status and message; 200 on success, 4xx/5xx on error.