예제 #1
0
def has_commit_today():
    date = get_github_date()
    repos = github3.iter_user_repos(Config.user_name)
    try:
        for repo in repos:
            if date in str(repo.pushed_at):
                return True
    except:
        error_log("Cann't search User: %s" % Config.user_name)

    return False
예제 #2
0
def has_commit_today():
    date = get_github_date()
    repos = github3.iter_user_repos(Config.user_name)
    try:
        for repo in repos:
            if date in str(repo.pushed_at):
                return True
    except:
        error_log("Cann't search User: %s" % Config.user_name)

    return False
예제 #3
0
    def test_iter_user_repos(self):
        args = ('login', None, None, None, -1, None)
        github3.iter_user_repos('login')
        self.gh.iter_user_repos.assert_called_with(*args)

        github3.iter_user_repos(None)