Skip to content

Commit 5901a1c

Browse files
author
Gauvain Pocentek
committed
Add support for priority attribute in labels
Fixes #256
1 parent 9561b81 commit 5901a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitlab/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,9 +1902,9 @@ class ProjectLabel(GitlabObject):
19021902
idAttr = 'name'
19031903
requiredDeleteAttrs = ['name']
19041904
requiredCreateAttrs = ['name', 'color']
1905-
optionalCreateAttrs = ['description']
1905+
optionalCreateAttrs = ['description', 'priority']
19061906
requiredUpdateAttrs = ['name']
1907-
optionalUpdateAttrs = ['new_name', 'color', 'description']
1907+
optionalUpdateAttrs = ['new_name', 'color', 'description', 'priority']
19081908

19091909
def subscribe(self, **kwargs):
19101910
"""Subscribe to a label.

0 commit comments

Comments
 (0)