aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/issues/__init__.py
diff options
context:
space:
mode:
authorAlejandro Gómez <alejandroogomez@gmail.com>2012-04-26 21:00:13 +0200
committerAlejandro Gómez <alejandroogomez@gmail.com>2012-05-27 19:54:28 +0200
commit8972834a85a17ebbeb326a9d4493725d53913e33 (patch)
treeba7b2529a2e0cea900f18a3a3d275178d394cc63 /pygithub3/services/issues/__init__.py
parentFix some issues resources (diff)
downloadpython-github3-8972834a85a17ebbeb326a9d4493725d53913e33.tar.xz
python-github3-8972834a85a17ebbeb326a9d4493725d53913e33.zip
Labels and Milestones services added
Diffstat (limited to 'pygithub3/services/issues/__init__.py')
-rw-r--r--pygithub3/services/issues/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pygithub3/services/issues/__init__.py b/pygithub3/services/issues/__init__.py
index 0699f9e..62ed105 100644
--- a/pygithub3/services/issues/__init__.py
+++ b/pygithub3/services/issues/__init__.py
@@ -1,9 +1,10 @@
-#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from pygithub3.services.base import Service
from .comments import Comments
from .events import Events
+from .labels import Labels
+from .milestones import Milestones
class Issue(Service):
""" Consume `Issues API <http://developer.github.com/v3/issues>`_ """
@@ -11,6 +12,8 @@ class Issue(Service):
def __init__(self, **config):
self.comments = Comments(**config)
self.events = Events(**config)
+ self.labels = Labels(**config)
+ self.milestones = Milestones(**config)
super(Issue, self).__init__(**config)
def list(self, data={}):
@@ -79,4 +82,4 @@ class Issue(Service):
"""
request = self.request_builder('issues.edit', user=user, repo=repo,
number=number, body=data)
- return self._patch(request) \ No newline at end of file
+ return self._patch(request)