mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Fix mistake in Repository.create_fork() (#1383)
I modified #1306 to use the NotSet parameter after it was pointed out this was more appropriate however I did not also update the conditional.
This commit is contained in:
@@ -2052,7 +2052,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
organization, str
|
||||
), organization
|
||||
post_parameters = {}
|
||||
if organization is not None:
|
||||
if organization is not github.GithubObject.NotSet:
|
||||
post_parameters["organization"] = organization
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"POST", self.url + "/forks", input=post_parameters,
|
||||
|
||||
Reference in New Issue
Block a user