From 4a9ef9f0fa26e01fc6c97cf88b2a162e21f61cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20L=C3=B3pez=20Mart=C3=ADn?= Date: Fri, 24 May 2019 23:19:24 +0200 Subject: feat: group labels with subscriptable mixin --- gitlab/mixins.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gitlab/mixins.py') diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 7cbb7b9..01a5b63 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -433,7 +433,9 @@ class AccessRequestMixin(object): class SubscribableMixin(object): - @cli.register_custom_action(("ProjectIssue", "ProjectMergeRequest", "ProjectLabel")) + @cli.register_custom_action( + ("ProjectIssue", "ProjectMergeRequest", "ProjectLabel", "GroupLabel") + ) @exc.on_http_error(exc.GitlabSubscribeError) def subscribe(self, **kwargs): """Subscribe to the object notifications. @@ -449,7 +451,9 @@ class SubscribableMixin(object): server_data = self.manager.gitlab.http_post(path, **kwargs) self._update_attrs(server_data) - @cli.register_custom_action(("ProjectIssue", "ProjectMergeRequest", "ProjectLabel")) + @cli.register_custom_action( + ("ProjectIssue", "ProjectMergeRequest", "ProjectLabel", "GroupLabel") + ) @exc.on_http_error(exc.GitlabUnsubscribeError) def unsubscribe(self, **kwargs): """Unsubscribe from the object notifications. -- cgit v1.2.1