Extracts repository name from a GitHub URL
(git_repo_url)
| 109 | raise Exception(f"Repository validation failed: {e}") |
| 110 | |
| 111 | def 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 | |
| 119 | def has_folder(folder_name): |
| 120 | return os.path.isdir(folder_name) |
no outgoing calls
no test coverage detected