Skip to content

Commit

Permalink
Ensure fork data payload is sent as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjb committed Nov 19, 2012
1 parent b7136f4 commit c81f4d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
0.4 (unreleased)
----------------

- Ensure fork data payload (org name) is sent as JSON.
[davidjb]
- Allow forks to be correctly named once created. GitHub's API forks using
the same name originally, so we need to rename once forked.
[davidjb]
Expand Down
2 changes: 1 addition & 1 deletion githubcollective/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _gh_org_repo_hooks(self, repo):

def _gh_org_fork_repo(self, fork_url):
return self._post_request('/repos/%s/forks' % fork_url,
{'org': self.org})
json.dumps({'org': self.org}))

def _gh_org_create_repo(self, repo):
return self._post_request('/orgs/%s/repos' % self.org,
Expand Down

0 comments on commit c81f4d2

Please sign in to comment.