如何在python中关闭拉取请求?
我使用如何在python中关闭拉取请求?,python,gitpython,Python,Gitpython,我使用 github_repo.create_pull(base='master', head=branch_name, title='title') 我似乎找不到如何关闭一个。参考PyGitHub代码: 以及github API: 我想说你想做什么 pr = ??? Code to get the PR you want ??? pr.edit(status="closed") 对于未来的读者来说,它现在似乎使用的是state,而不是status,但除此之外,我怀疑这仍然有效。
github_repo.create_pull(base='master', head=branch_name, title='title')
我似乎找不到如何关闭一个。参考PyGitHub代码:
以及github API:
我想说你想做什么
pr = ??? Code to get the PR you want ???
pr.edit(status="closed")
对于未来的读者来说,它现在似乎使用的是
state
,而不是status
,但除此之外,我怀疑这仍然有效。