Esempio n. 1
0
def gh():
    token = gh2md.get_environment_token()
    gh = gh2md.github_login(token=token)
    return gh
Esempio n. 2
0
def test_get_repo_returns_pygithub_repo():
    repo_name = "mattduck/dotfiles"
    token = gh2md.get_environment_token()
    repo, gh = gh2md.get_github_repo(repo_name, token=token)
    assert repo.html_url == "https://github.com/mattduck/dotfiles"
Esempio n. 3
0
def gh():
    return gh2md.GithubAPI(gh2md.get_environment_token())