Skip to content

Commit 60c9910

Browse files
author
Gauvain Pocentek
committed
issues: add missing optional listing parameters
1 parent 2e0ac3f commit 60c9910

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab/objects.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ class Issue(GitlabObject):
760760
canUpdate = False
761761
canCreate = False
762762
shortPrintAttr = 'title'
763-
optionalListAttrs = ['state', 'labels']
763+
optionalListAttrs = ['state', 'labels', 'order_by', 'sort']
764764

765765

766766
class IssueManager(BaseManager):
@@ -1034,7 +1034,8 @@ class ProjectIssue(GitlabObject):
10341034
_url = '/projects/%(project_id)s/issues/'
10351035
_constructorTypes = {'author': 'User', 'assignee': 'User',
10361036
'milestone': 'ProjectMilestone'}
1037-
optionalListAttrs = ['state', 'labels', 'milestone', 'iid']
1037+
optionalListAttrs = ['state', 'labels', 'milestone', 'iid', 'order_by',
1038+
'sort']
10381039
requiredUrlAttrs = ['project_id']
10391040
requiredCreateAttrs = ['title']
10401041
# FIXME: state_event is only valid with update

0 commit comments

Comments
 (0)