diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-20 08:27:06 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-20 08:29:21 +0200 |
commit | 5901a1c4b7b82670c4283f84c4fb107ff77e0e76 (patch) | |
tree | dbfb058288b659cfdd2b870a1483e8c884d20997 /gitlab/objects.py | |
parent | 9561b81a6a9e7af4da1eba6184fc0d3f99270fdd (diff) | |
download | gitlab-5901a1c4b7b82670c4283f84c4fb107ff77e0e76.tar.gz |
Add support for priority attribute in labels
Fixes #256
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index e753e9f..ad1636a 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1902,9 +1902,9 @@ class ProjectLabel(GitlabObject): idAttr = 'name' requiredDeleteAttrs = ['name'] requiredCreateAttrs = ['name', 'color'] - optionalCreateAttrs = ['description'] + optionalCreateAttrs = ['description', 'priority'] requiredUpdateAttrs = ['name'] - optionalUpdateAttrs = ['new_name', 'color', 'description'] + optionalUpdateAttrs = ['new_name', 'color', 'description', 'priority'] def subscribe(self, **kwargs): """Subscribe to a label. |