summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorMika Mäenpää <mika.j.maenpaa@tut.fi>2014-12-05 10:56:11 +0200
committerMika Mäenpää <mika.j.maenpaa@tut.fi>2014-12-05 10:56:11 +0200
commit72eb744c4408871178c05726570ef8fdca64bb8a (patch)
tree6ed0fe93a9d71b049f451524d0582249294d96a9 /gitlab.py
parent8e13487dfe7a480da8d40892699d0914bbb53f3d (diff)
downloadgitlab-72eb744c4408871178c05726570ef8fdca64bb8a.tar.gz
Added missing optionalCreateAttrs for ProjectIssue. Fixed typo in ProjectTag.
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'