Skip to content

Commit c55fd4b

Browse files
author
Gauvain Pocentek
committed
update ProjectLabel attributes
1 parent 73627a2 commit c55fd4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitlab/objects.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1340,9 +1340,9 @@ class ProjectLabel(GitlabObject):
13401340
idAttr = 'name'
13411341
requiredDeleteAttrs = ['name']
13421342
requiredCreateAttrs = ['name', 'color']
1343-
requiredUpdateAttrs = []
1344-
# FIXME: new_name is only valid with update
1345-
optionalCreateAttrs = ['new_name']
1343+
optionalCreateAttrs = ['description']
1344+
requiredUpdateAttrs = ['name']
1345+
optionalUpdateAttrs = ['new_name', 'color', 'description']
13461346

13471347

13481348
class ProjectLabelManager(BaseManager):

0 commit comments

Comments
 (0)