【问题标题】:How to create a Pull Request using github3.py API?如何使用 github3.py API 创建拉取请求?
【发布时间】:2015-09-28 05:18:37
【问题描述】:

这似乎在github web api 中得到支持,但我在文档中没有找到示例,并且似乎没有在 API 中实现。

我错过了什么吗?是否可以通过github3 python API创建PR?

【问题讨论】:

    标签: python github github-api github3.py


    【解决方案1】:

    相关方法是Repository.create_pull

    http://github3py.readthedocs.org/en/master/repos.html#github3.repos.repo.Repository.create_pull

    要使用它,请获取您感兴趣的 repo 的 Repository 实例,然后使用拉取请求头部的 ref 调用“create_pull”。

    【讨论】:

      猜你喜欢
      • 2017-08-30
      • 2021-01-21
      • 2014-05-06
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多