def github_org(sources, env_vars):
cmd_gral_part = cmd_composer(env_vars, 'github')
git_repositories = {'repositories':[]}
gh = github3.GitHub()
for organization in sources['repositories']:
if gh.organization(organization) is not None:
gh_organization = github3.organization(organization)
for repo in gh_organization.iter_repos():
repo_url = 'https://github.com/' + organization + '/' + repo.name + '.git'
git_repositories['repositories'].append(repo_url)
git(git_repositories, env_vars)
for repo in gh_organization.iter_repos():
cmd_github_part = ' ' + organization + ' ' + repo.name + ' -t ' + sources['token']
cmd = cmd_gral_part + cmd_github_part
os.system(cmd)
else:
pass
grimoire-demo.py 文件源码
python
阅读 56
收藏 0
点赞 0
评论 0
评论列表
文章目录