summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab.py b/gitlab.py
index 647314a..eb59c9a 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -913,8 +913,9 @@ class ProjectIssue(GitlabObject):
canDelete = False
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['title']
+ # FIXME: state_event is only valid with update
optionalCreateAttrs = ['description', 'assignee_id', 'milestone_id',
- 'labels']
+ 'labels', 'state_event']
shortPrintAttr = 'title'
@@ -949,7 +950,7 @@ class ProjectTag(GitlabObject):
canUpdate = False
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['tag_name', 'ref']
- optionalCreateattrs = ['message']
+ optionalCreateAttrs = ['message']
shortPrintAttr = 'name'