Exemplo n.º 1
0
    print('got %s' % gh_user.login)
    sys.stdout.write('- getting org...')
    sys.stdout.flush()
    gh_org = gh.get_organization(args.org)
    print('got %s' % gh_org.login)
    if not args.repos:
        sys.stdout.write('- getting org\'s repo list...')
        sys.stdout.flush()
        gh_org_repos = dict((r.name, r) for r in gh_org.get_repos())
        print('got %d' % len(gh_org_repos))
    else:
        gh_org_repos = dict()

    print('')

    for repo_name in sorted(rd.get_repo_list()):
        if args.repos and repo_name not in args.repos:
            continue

        r = rd.get_repo(repo_name)

        if not r.full_version:
            continue

        print('%s %s:' % (r.name, r.full_version))

        r_re = re.match(url_re, r.url)
        if not r_re:
            print('- unable to parse URL')
            continue