aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/repos/forks.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-22 01:16:10 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-22 01:16:32 +0100
commit36381d426f5da0552d2db0b60c757ef5e3a67c2d (patch)
treee5dc0081cbb3cc67655f45ee217ebf7165dc0fa2 /pygithub3/requests/repos/forks.py
parentRepos.downloads service done (diff)
downloadpython-github3-36381d426f5da0552d2db0b60c757ef5e3a67c2d.tar.xz
python-github3-36381d426f5da0552d2db0b60c757ef5e3a67c2d.zip
Repos.forks service done
Diffstat (limited to 'pygithub3/requests/repos/forks.py')
-rw-r--r--pygithub3/requests/repos/forks.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/pygithub3/requests/repos/forks.py b/pygithub3/requests/repos/forks.py
new file mode 100644
index 0000000..b27dde3
--- /dev/null
+++ b/pygithub3/requests/repos/forks.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+
+from . import Request
+
+from pygithub3.resources.repos import Repo
+
+
+class List(Request):
+
+ uri = 'repos/{user}/{repo}/forks'
+ resource = Repo
+
+
+class Create(Request):
+
+ uri = '/repos/{user}/{repo}/forks'
+ resource = Repo