Skip to content

Commit 72eb744

Browse files
committed
Added missing optionalCreateAttrs for ProjectIssue. Fixed typo in ProjectTag.
1 parent 8e13487 commit 72eb744

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,9 @@ class ProjectIssue(GitlabObject):
913913
canDelete = False
914914
requiredUrlAttrs = ['project_id']
915915
requiredCreateAttrs = ['title']
916+
# FIXME: state_event is only valid with update
916917
optionalCreateAttrs = ['description', 'assignee_id', 'milestone_id',
917-
'labels']
918+
'labels', 'state_event']
918919

919920
shortPrintAttr = 'title'
920921

@@ -949,7 +950,7 @@ class ProjectTag(GitlabObject):
949950
canUpdate = False
950951
requiredUrlAttrs = ['project_id']
951952
requiredCreateAttrs = ['tag_name', 'ref']
952-
optionalCreateattrs = ['message']
953+
optionalCreateAttrs = ['message']
953954
shortPrintAttr = 'name'
954955

955956

0 commit comments

Comments
 (0)