diff options
author | Alberto López Martín <alberto.lopez@sidisel.com> | 2019-05-24 23:19:24 +0200 |
---|---|---|
committer | Alberto López Martín <alberto.lopez@sidisel.com> | 2019-07-26 08:18:24 +0200 |
commit | 4a9ef9f0fa26e01fc6c97cf88b2a162e21f61cce (patch) | |
tree | 2e1b6893bc9d1927a48e4a95ceea72f690f33ce5 /gitlab/mixins.py | |
parent | 2c1ea56a217525bbb0a5321eb392c7fe7c100d44 (diff) | |
download | gitlab-4a9ef9f0fa26e01fc6c97cf88b2a162e21f61cce.tar.gz |
feat: group labels with subscriptable mixin
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 8 |
1 files changed, 6 insertions, 2 deletions
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. |