Skip to content

Commit

Permalink
issues: add optional listing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Jun 19, 2016
1 parent 412e2bc commit c85276a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab/objects.py
Expand Up @@ -760,6 +760,7 @@ class Issue(GitlabObject):
canUpdate = False
canCreate = False
shortPrintAttr = 'title'
optionalListAttrs = ['state', 'labels']


class IssueManager(BaseManager):
Expand Down Expand Up @@ -1003,6 +1004,7 @@ class ProjectIssue(GitlabObject):
_url = '/projects/%(project_id)s/issues/'
_constructorTypes = {'author': 'User', 'assignee': 'User',
'milestone': 'ProjectMilestone'}
optionalListAttrs = ['state', 'labels', 'milestone', 'iid']
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['title']
# FIXME: state_event is only valid with update
Expand Down

0 comments on commit c85276a

Please sign in to comment.