aboutsummaryrefslogtreecommitdiffstats
path: root/github3
diff options
context:
space:
mode:
Diffstat (limited to 'github3')
-rw-r--r--github3/api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/github3/api.py b/github3/api.py
index 81ae3e7..78f87b3 100644
--- a/github3/api.py
+++ b/github3/api.py
@@ -105,6 +105,11 @@ class GithubCore(object):
return msg
+ def _post_resource(self, resource, obj, data, **kwargs):
+ r = self._http_resource('POST', resource, data=data, params=kwargs)
+ item = self._resource_deserialize(r.content)
+
+ return obj.new_from_dict(item, gh=self)
@staticmethod
def _total_pages_from_header(link_header):