Пример #1
0
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
Пример #2
0
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
Пример #3
0
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