【发布时间】:2020-02-11 06:41:55
【问题描述】:
我通过这种方法想出了如何使用 PyGIthub 在 Github 上创建存储库:
import sys
from github import Github
g = Github('AryanshMahato', 'GITHUB_PASSWORD')
user = g.get_user()
repo = user.create_repo(folderName)
但在这种情况下,PyGithub 会创建一个公共存储库。
如何使用 PyGithub 创建私有存储库?
【问题讨论】:
标签: python github automation webautomation pygithub