mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
fix repository
This commit is contained in:
committed by
Nhomar Hernández [Vauxoo]
parent
9d14335657
commit
01d4d5fc69
@@ -1022,7 +1022,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
self.url
|
||||
)
|
||||
|
||||
def edit(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, default_branch=github.GithubObject.NotSet):
|
||||
def edit(self, name=None, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, default_branch=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
@@ -1035,6 +1035,8 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
:param default_branch: string
|
||||
:rtype: None
|
||||
"""
|
||||
if name is None:
|
||||
name = self.name
|
||||
assert isinstance(name, (str, unicode)), name
|
||||
assert description is github.GithubObject.NotSet or isinstance(description, (str, unicode)), description
|
||||
assert homepage is github.GithubObject.NotSet or isinstance(homepage, (str, unicode)), homepage
|
||||
|
||||
Reference in New Issue
Block a user