From c55fd4b43d6576aff3c679b701c0f5be0cb98281 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 19 Jun 2016 20:36:11 +0200 Subject: update ProjectLabel attributes --- gitlab/objects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 8638b13..8231219 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1340,9 +1340,9 @@ class ProjectLabel(GitlabObject): idAttr = 'name' requiredDeleteAttrs = ['name'] requiredCreateAttrs = ['name', 'color'] - requiredUpdateAttrs = [] - # FIXME: new_name is only valid with update - optionalCreateAttrs = ['new_name'] + optionalCreateAttrs = ['description'] + requiredUpdateAttrs = ['name'] + optionalUpdateAttrs = ['new_name', 'color', 'description'] class ProjectLabelManager(BaseManager): -- cgit v1.2.1