feedback_forensics.data.fetcher

feedback_forensics.data.fetcher#

Module Contents#

Functions#

clone_repo

Clones a GitHub repository into a specified directory using subprocess.

clone_file

Clones a single file from a git repository using git archive.

API#

feedback_forensics.data.fetcher.clone_repo(username, repo_name, clone_directory, provider='github.com', token=None)#

Clones a GitHub repository into a specified directory using subprocess.

Args: username (str): GitHub username token (str): Personal access token for GitHub repo_name (str): Name of the repository to be cloned clone_directory (str): Local directory where the repository should be cloned

feedback_forensics.data.fetcher.clone_file(username, repo_name, file_path, destination_dir, provider='github.com', token=None, ref='HEAD')#

Clones a single file from a git repository using git archive.