gpt4 book ai didi

python - 如何使用 PyGithub 创建新的存储库

转载 作者:太空狗 更新时间:2023-10-29 21:22:09 24 4
gpt4 key购买 nike

如何在 Github 上使用 PyGithub 创建一个新的存储库?我特别想知道如何使用 create_repo方法?如何生成 AuthenticatedUser

最佳答案

我的问题的解决方案如下

g = Github(token)
user = g.get_user()
repo = user.create_repo(full_name)

关于python - 如何使用 PyGithub 创建新的存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28675121/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com