aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/issues/comments.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-06-16 13:56:29 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-06-16 13:58:12 +0200
commit107b12b3b48040488ff6ddd54cb1300200dc8b37 (patch)
treef35c57bb8b5c5cd85511aaad1c0df0e4f97c0c25 /pygithub3/requests/issues/comments.py
parentMerge #5 'services/orgs' (diff)
parentTests on services.issues working (diff)
downloadpython-github3-107b12b3b48040488ff6ddd54cb1300200dc8b37.tar.xz
python-github3-107b12b3b48040488ff6ddd54cb1300200dc8b37.zip
Merge #12 'services/issues'
Diffstat (limited to 'pygithub3/requests/issues/comments.py')
-rw-r--r--pygithub3/requests/issues/comments.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/pygithub3/requests/issues/comments.py b/pygithub3/requests/issues/comments.py
new file mode 100644
index 0000000..638c9cf
--- /dev/null
+++ b/pygithub3/requests/issues/comments.py
@@ -0,0 +1,42 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+
+from pygithub3.requests.base import Request, ValidationError
+from pygithub3.resources.issues import Comment
+
+class List(Request):
+
+ uri = 'repos/{user}/{repo}/issues/{number}/comments'
+ resource = Comment
+
+
+class Get(Request):
+
+ uri = 'repos/{user}/{repo}/issues/comments/{id}'
+ resource = Comment
+
+
+class Create(Request):
+
+ uri = 'repos/{user}/{repo}/issues/{number}/comments'
+ resource = Comment
+ body_schema = {
+ 'schema': ('body', ),
+ 'required': ('body', )
+ }
+
+
+class Edit(Request):
+
+ uri = 'repos/{user}/{repo}/issues/comments/{id}'
+ resource = Comment
+ body_schema = {
+ 'schema': ('body', ),
+ 'required': ('body', )
+ }
+
+
+class Delete(Request):
+
+ uri = 'repos/{user}/{repo}/issues/comments/{id}'
+ resource = Comment