MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / extractRepositoryName

Function extractRepositoryName

bota/src/bota/vm.py:111–117  ·  view source on GitHub ↗

Extracts repository name from a GitHub URL

(git_repo_url)

Source from the content-addressed store, hash-verified

109 raise Exception(f"Repository validation failed: {e}")
110
111def extractRepositoryName(git_repo_url):
112 """Extracts repository name from a GitHub URL"""
113 parts = [x for x in git_repo_url.split('/') if x.strip()]
114 repo_name = parts[-1]
115 if repo_name.endswith('.git'):
116 repo_name = repo_name[:-4]
117 return repo_name
118
119def has_folder(folder_name):
120 return os.path.isdir(folder_name)

Callers 2

install_ui_scraperFunction · 0.85
install_scraperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected