diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-07-26 17:43:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 17:43:55 +0200 |
commit | edb3359fb3a77050d3e162da641445952397279b (patch) | |
tree | c5e71793617867a6aebf3d6ea1b84e26c7774ca2 /gitlab/mixins.py | |
parent | 2c1ea56a217525bbb0a5321eb392c7fe7c100d44 (diff) | |
parent | f7f24bd324eaf33aa3d1d5dd12719237e5bf9816 (diff) | |
download | gitlab-edb3359fb3a77050d3e162da641445952397279b.tar.gz |
Merge pull request #847 from sidisel-albertolopez/feat/grouplabels
feat: Add grouplabel support with subscribable 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. |