def _get_current_repo(github, repo, remote='origin'):
"""
Gets the github repo associated with the
provided repo
:param Github github:
:param Repo repo:
:param unicode remote:
:return: The github repository assocated with
the provided repo
:rtype: github.Repository.Repository
"""
owner, repo = _get_org_and_name_from_remote(repo.remotes[remote])
return github.get_repo('{0}/{1}'.format(owner, repo))
pullrequest.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录