summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/labels.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/labels.py')
-rw-r--r--gitlab/v4/objects/labels.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitlab/v4/objects/labels.py b/gitlab/v4/objects/labels.py
index 544c3cd..99da06a 100644
--- a/gitlab/v4/objects/labels.py
+++ b/gitlab/v4/objects/labels.py
@@ -5,6 +5,7 @@ from gitlab.mixins import (
DeleteMixin,
ListMixin,
ObjectDeleteMixin,
+ PromoteMixin,
RetrieveMixin,
SaveMixin,
SubscribableMixin,
@@ -83,7 +84,9 @@ class GroupLabelManager(ListMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTMa
self.gitlab.http_delete(self.path, query_data={"name": name}, **kwargs)
-class ProjectLabel(SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject):
+class ProjectLabel(
+ PromoteMixin, SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject
+):
_id_attr = "name"
# Update without ID, but we need an ID to get from list.