Python 如何使用PyGithub在Github中创建私有存储库
我通过以下方法了解了如何使用PyGIthub在Github上创建存储库:Python 如何使用PyGithub在Github中创建私有存储库,python,github,automation,webautomation,pygithub,Python,Github,Automation,Webautomation,Pygithub,我通过以下方法了解了如何使用PyGIthub在Github上创建存储库: import sys from github import Github g = Github('AryanshMahato', 'GITHUB_PASSWORD') user = g.get_user() repo = user.create_repo(folderName) 但在本例中,PyGithub创建了一个公共存储库 如何使用PyGithub创建私有存储库?官方文档: 您可以将private参数设置为Tru
import sys
from github import Github
g = Github('AryanshMahato', 'GITHUB_PASSWORD')
user = g.get_user()
repo = user.create_repo(folderName)
但在本例中,PyGithub创建了一个公共存储库
如何使用PyGithub创建私有存储库?官方文档:
您可以将private
参数设置为True
repo = user.create_repo(folderName, private=True)