diff options
author | Raimund Hook <raimund.hook@exfo.com> | 2021-09-24 10:22:27 +0100 |
---|---|---|
committer | Raimund Hook <raimund.hook@exfo.com> | 2021-10-18 10:30:34 +0100 |
commit | 6d7c88a1fe401d271a34df80943634652195b140 (patch) | |
tree | 0596d9782a50a60e95d1677c17f9a02428993d1d /gitlab/v4 | |
parent | 905781bed2afa33634b27842a42a077a160cffb8 (diff) | |
download | gitlab-6d7c88a1fe401d271a34df80943634652195b140.tar.gz |
feat(api): add project label promotion
Adds a mixin that allows the /promote endpoint to be called.
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
Diffstat (limited to 'gitlab/v4')
-rw-r--r-- | gitlab/v4/objects/labels.py | 5 |
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. |