我使用创建了拉取请求
github_repo.create_pull(base='master', head=branch_name, title='title')
我似乎找不到关闭方法。
答案 0 :(得分:0)
请参阅PyGitHub代码:
https://github.com/PyGithub/PyGithub/blob/master/github/PullRequest.py#L495
还有github API:
https://developer.github.com/v3/pulls/#update-a-pull-request
我会说你想做
pr = ??? Code to get the PR you want ???
pr.edit(status="closed")