# Path: flask_github/client/messages.py
# class Issue(msgs.Message):
#   title = msgs.StringField(1)
#   body = msgs.StringField(2)
#   state = msgs.StringField(3)
#   labels = msgs.StringField(4, repeated=True)
#   assignee = msgs.StringField(5)
#   milestone = msgs.StringField(6)
# 
# Path: flask_github/client/requests.py
# class IssueResponse(msgs.Message):
#   response = msgs.MessageField('Issue', 1)
# 
# Path: flask_github/client/requests.py
# class IssueListResponse(msgs.Message):
#   response = msgs.MessageField('Issue', 1, repeated=True)


from issuesevents import IssuesEvents
from issueslabels import IssuesLabels
from issuescomments import IssuesComments
from issuesmilestones import IssuesMilestones
from ..messages import Issue
from ..requests import IssueResponse
from ..requests import IssueListResponse

      'labels': labels,
      'sort': sort,
      'direction': direction,
      'since': since,
      'milestone': milestone
    }
    return self.client.get('repos/%s/%s/issues' % (
      self.client.user(user), repo), query=query, msg_type=IssueListResponse)

  def get(self, repo, number, user=None):
    return self.client.get(
      'repos/%s/%s/issues/%s' % (
        self.client.user(user), repo, number), msg_type=IssueResponse)

  def create(self, repo, title, body=None, assignee=None,
      milestone=None, labels=None, user=None):
    msg = Issue(
      title=title,
      body=body,
      assignee=assignee,
      milestone=milestone,
      labels=labels)
    return self._create(repo=repo, msg=msg, user=user)

  def _create(self, repo, msg, user=None):
    return self.client.post('repos/%s/%s/issues' % (
      self.client.user(user), repo), data=msg, msg_type=IssueResponse)

  def edit(self, repo, id, title=None, body=None, assignee=None,
      state=None, milestone=None, labels=None, user=None):

# Path: flask_github/client/messages.py
# class Issue(msgs.Message):
#   title = msgs.StringField(1)
#   body = msgs.StringField(2)
#   state = msgs.StringField(3)
#   labels = msgs.StringField(4, repeated=True)
#   assignee = msgs.StringField(5)
#   milestone = msgs.StringField(6)
# 
# Path: flask_github/client/requests.py
# class IssueResponse(msgs.Message):
#   response = msgs.MessageField('Issue', 1)
# 
# Path: flask_github/client/requests.py
# class IssueListResponse(msgs.Message):
#   response = msgs.MessageField('Issue', 1, repeated=True)


# Path: flask_github/client/issues/issues.py
from issuesevents import IssuesEvents
from issueslabels import IssuesLabels
from issuescomments import IssuesComments
from issuesmilestones import IssuesMilestones
from ..messages import Issue
from ..requests import IssueResponse
from ..requests import IssueListResponse

      'labels': labels,
      'sort': sort,
      'direction': direction,
      'since': since,
      'milestone': milestone
    }
    return self.client.get('repos/%s/%s/issues' % (
      self.client.user(user), repo), query=query, msg_type=IssueListResponse)

  def get(self, repo, number, user=None):
    return self.client.get(
      'repos/%s/%s/issues/%s' % (
        self.client.user(user), repo, number), msg_type=IssueResponse)

  def create(self, repo, title, body=None, assignee=None,
      milestone=None, labels=None, user=None):
    msg = Issue(
      title=title,
      body=body,
      assignee=assignee,
      milestone=milestone,
      labels=labels)
    return self._create(repo=repo, msg=msg, user=user)

  def _create(self, repo, msg, user=None):
    return self.client.post('repos/%s/%s/issues' % (
      self.client.user(user), repo), data=msg, msg_type=IssueResponse)

  def edit(self, repo, id, title=None, body=None, assignee=None,
      state=None, milestone=None, labels=None, user=None):

    msg = Issue(
