def test_extract_github_uri(): sample_repo_abbr = "minamorl/minamorl.com" r1 = github.extract_github_uri(sample_repo_abbr) sample_repo_full = "[email protected]:minamorl/minamorl.com.git" r2 = github.extract_github_uri(sample_repo_full) assert r1 == r2
async def task(repo_name): messages.downloading(repo_name) uri = github.extract_github_uri(repo_name) repo = github.clone_from(uri) logs = list(github.read_log(repo_name, repo)) for l in logs: print(l["summary"]) messages.done(repo_name) return logs