8000 Account for new way of creating a fork in an org · n1k0/github3.py@f09b35e · GitHub
[go: up one dir, main page]

Skip to content

Commit f09b35e

Browse files
committed
Account for new way of creating a fork in an org
1 parent b051232 commit f09b35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def create_fork(self, organization=None):
372372
"""
373373
url = self._build_url('forks', base_url=self._api)
374374
if organization:
375-
resp = self._post(url, params={'org': organization})
375+
resp = self._post(url, data=dumps({'organization': organization}))
376376
else:
377377
resp = self._post(url)
378378
json = self._json(resp, 202)

0 commit comments

Comments
 (0)
0